mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
perf: closes #13145, reduce calls in actors.prune
instead of deleting 18k users everyday delete max 500 every 30mins like notifications.prune refactor getLocalFollowCounts so it works with an array of actors dont make dbcalls for uids that dont exist
This commit is contained in:
committed by
Barış Soner Uşaklı
parent
224910b133
commit
d590c2afcf
@@ -66,7 +66,7 @@ ActivityPub.startJobs = () => {
|
||||
}
|
||||
}, null, true, null, null, false); // change last argument to true for debugging
|
||||
|
||||
new CronJob('0 1 * * *', async () => {
|
||||
new CronJob('*/30 * * * *', async () => {
|
||||
try {
|
||||
await ActivityPub.actors.prune();
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user