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