use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Tag;
+use Friendica\Model\User;
use Friendica\Protocol\ActivityPub\Queue;
use Friendica\Protocol\Relay;
// Hourly cron calls
if (DI::config()->get('system', 'last_cron_hourly', 0) + 3600 < time()) {
+
// Update trending tags cache for the community page
Tag::setLocalTrendingHashtags(24, 20);
Tag::setGlobalTrendingHashtags(24, 20);
Worker::add(Worker::PRIORITY_LOW, 'OptimizeTables');
}
+ foreach (User::getList($start=1, $limit=PHP_INT_MAX, $type='active') as $user) {
+ Worker::add(Worker::PRIORITY_LOW, 'CheckRelMeProfileLink', $user['uid']);
+ }
+
// Resubscribe to relay servers
Relay::reSubscribe();