Merge pull request #6583 from annando/priority
Lower priority for removing items
This commit is contained in:
commit
5d2fce789a
|
@ -891,7 +891,7 @@ class User
|
|||
Worker::add(PRIORITY_LOW, 'Directory', $self['url']);
|
||||
|
||||
// Remove the user relevant data
|
||||
Worker::add(PRIORITY_LOW, 'RemoveUser', $uid);
|
||||
Worker::add(PRIORITY_NEGLIGIBLE, 'RemoveUser', $uid);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ class RemoveContact {
|
|||
do {
|
||||
$items = Item::select(['id'], $condition, ['limit' => 100]);
|
||||
while ($item = Item::fetch($items)) {
|
||||
DBA::delete('item', ['id' => $item['id']]);
|
||||
Item::deleteById($item['id'], PRIORITY_NEGLIGIBLE);
|
||||
}
|
||||
DBA::close($items);
|
||||
} while (Item::exists($condition));
|
||||
|
|
Loading…
Reference in New Issue
Block a user