mirror of
https://github.com/friendica/friendica
synced 2025-04-28 00:30:10 +00:00
Synchronize contacts with the directory server
This commit is contained in:
parent
2b9ef97adc
commit
d9a9876ddd
6 changed files with 93 additions and 0 deletions
|
@ -105,6 +105,11 @@ class Cron
|
|||
// Hourly cron calls
|
||||
if (DI::config()->get('system', 'last_cron_hourly', 0) + 3600 < time()) {
|
||||
|
||||
// Search for new contacts in the directory
|
||||
if (DI::config()->get('system', 'synchronize_directory')) {
|
||||
Worker::add(PRIORITY_LOW, 'PullDirectory');
|
||||
}
|
||||
|
||||
// Delete all done workerqueue entries
|
||||
DBA::delete('workerqueue', ['`done` AND `executed` < UTC_TIMESTAMP() - INTERVAL 1 HOUR']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue