]> git.mxchange.org Git - friendica.git/commitdiff
Let the Worker check the homepage of a profile daily
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 5 Nov 2022 08:59:12 +0000 (09:59 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 7 Nov 2022 10:15:54 +0000 (11:15 +0100)
src/Worker/Cron.php

index 21d2f8a20560fcb95804a5e7a45cdfdba477257a..cd155dbbbe17b5e625533157737752445b4759c8 100644 (file)
@@ -27,6 +27,7 @@ use Friendica\Core\Worker;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Tag;
+use Friendica\Model\User;
 use Friendica\Protocol\ActivityPub\Queue;
 use Friendica\Protocol\Relay;
 
@@ -85,6 +86,7 @@ class Cron
                // 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);
@@ -132,6 +134,10 @@ class Cron
                                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();