<?php
/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
// Hourly cron calls
if ((DI::keyValue()->get('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, 'CheckRelMeProfileLink', $user['uid']);
}
DBA::close($users);
-
+
// Resubscribe to relay servers
Relay::reSubscribe();
+ // Update "blocked" status of servers
+ Worker::add(Worker::PRIORITY_LOW, 'UpdateBlockedServers');
+
DI::keyValue()->set('last_cron_daily', time());
}
private static function deleteSleepingProcesses()
{
Logger::info('Looking for sleeping processes');
-
+
$processes = DBA::p("SHOW FULL PROCESSLIST");
while ($process = DBA::fetch($processes)) {
if (($process['Command'] != 'Sleep') || ($process['Time'] < 300) || ($process['db'] != DBA::databaseName())) {