mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
Hourly process pending queue entries
This commit is contained in:
parent
1d13574225
commit
4a1fb1da12
2 changed files with 40 additions and 4 deletions
|
@ -27,6 +27,7 @@ use Friendica\Core\Worker;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Tag;
|
||||
use Friendica\Protocol\ActivityPub\Queue;
|
||||
use Friendica\Protocol\Relay;
|
||||
|
||||
class Cron
|
||||
|
@ -88,6 +89,9 @@ class Cron
|
|||
Tag::setLocalTrendingHashtags(24, 20);
|
||||
Tag::setGlobalTrendingHashtags(24, 20);
|
||||
|
||||
// Process pending posts in the queue
|
||||
Queue::processAll();
|
||||
|
||||
// Search for new contacts in the directory
|
||||
if (DI::config()->get('system', 'synchronize_directory')) {
|
||||
Worker::add(PRIORITY_LOW, 'PullDirectory');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue