mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Use deferred tasks
This commit is contained in:
parent
d4a536137d
commit
c775833117
4 changed files with 29 additions and 6 deletions
|
@ -126,8 +126,16 @@ class Queue
|
|||
while ($entry = DBA::fetch($entries)) {
|
||||
self::process($entry['id']);
|
||||
}
|
||||
}
|
||||
|
||||
DBA::delete('inbox-entry', ["`received` < ?", DateTimeFormat::utc('now - 1 days')]);
|
||||
/**
|
||||
* Process all activities
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function clear()
|
||||
{
|
||||
DBA::delete('inbox-entry', ["`received` < ?", DateTimeFormat::utc('now - 2 days')]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue