Tag::setLocalTrendingHashtags(24, 20);
Tag::setGlobalTrendingHashtags(24, 20);
- // Process pending posts in the queue
+ // Remove old pending posts from the queue
+ Queue::clear();
+
+ // Process all unprocessed entries
Queue::processAll();
// Search for new contacts in the directory
Worker::add(PRIORITY_LOW, 'ExpirePosts');
- Worker::add(PRIORITY_LOW, 'ExpireConversations');
+ Worker::add(PRIORITY_LOW, 'ExpireActivities');
Worker::add(PRIORITY_LOW, 'RemoveUnusedTags');
if (DI::config()->get('system', 'optimize_tables')) {
Worker::add(PRIORITY_LOW, 'OptimizeTables');
}
-
- DI::config()->set('system', 'last_cron_daily', time());
// Resubscribe to relay servers
Relay::reSubscribe();
+
+ DI::config()->set('system', 'last_cron_daily', time());
}
Logger::notice('end');