Renamed functions

This commit is contained in:
Michael 2019-12-21 18:57:00 +00:00
parent 33cb241ed3
commit 537da657cc
4 changed files with 10 additions and 10 deletions

View file

@ -38,11 +38,11 @@ class Cron
// Fork the cron jobs in separate parts to avoid problems when one of them is crashing // Fork the cron jobs in separate parts to avoid problems when one of them is crashing
Hook::fork($a->queue['priority'], "cron"); Hook::fork($a->queue['priority'], "cron");
// run the process to discover global contacts in the background // run the process to update server directories in the background
Worker::add(PRIORITY_LOW, "DiscoverPoCo"); Worker::add(PRIORITY_LOW, 'UpdateServerDirectories');
// run the process to update locally stored global contacts in the background // run the process to update locally stored global contacts in the background
Worker::add(PRIORITY_LOW, 'DiscoverContacts'); Worker::add(PRIORITY_LOW, 'UpdateGContacts');
// Expire and remove user entries // Expire and remove user entries
Worker::add(PRIORITY_MEDIUM, "CronJobs", "expire_and_remove_users"); Worker::add(PRIORITY_MEDIUM, "CronJobs", "expire_and_remove_users");
@ -73,7 +73,7 @@ class Cron
// update nodeinfo data // update nodeinfo data
Worker::add(PRIORITY_LOW, "CronJobs", "nodeinfo"); Worker::add(PRIORITY_LOW, "CronJobs", "nodeinfo");
Worker::add(PRIORITY_LOW, 'UpdateServers'); Worker::add(PRIORITY_LOW, 'UpdateGServers');
Worker::add(PRIORITY_LOW, 'UpdateSuggestions'); Worker::add(PRIORITY_LOW, 'UpdateSuggestions');

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* @file src/Worker/DiscoverContacts.php * @file src/Worker/UpdateGContacts.php
*/ */
namespace Friendica\Worker; namespace Friendica\Worker;
@ -14,7 +14,7 @@ use Friendica\Model\GServer;
use Friendica\Util\DateTimeFormat; use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class DiscoverContacts class UpdateGContacts
{ {
// Updates gcontact entries // Updates gcontact entries
public static function execute() public static function execute()

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* @file src/Worker/UpdateServers.php * @file src/Worker/UpdateGServers.php
*/ */
namespace Friendica\Worker; namespace Friendica\Worker;
@ -9,7 +9,7 @@ use Friendica\Core\Worker;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\Model\GServer; use Friendica\Model\GServer;
class UpdateServers class UpdateGServers
{ {
/** /**
* @brief Updates the first 250 servers * @brief Updates the first 250 servers

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* @file src/Worker/DiscoverPoCo.php * @file src/Worker/UpdateServerDirectories.php
*/ */
namespace Friendica\Worker; namespace Friendica\Worker;
@ -9,7 +9,7 @@ use Friendica\Core\Logger;
use Friendica\Model\GContact; use Friendica\Model\GContact;
use Friendica\Protocol\PortableContact; use Friendica\Protocol\PortableContact;
class DiscoverPoCo class UpdateServerDirectories
{ {
public static function execute() public static function execute()
{ {