mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
Issue 9344: Update trending tags hourly
This commit is contained in:
parent
78121afcb0
commit
d94e653030
2 changed files with 6 additions and 6 deletions
|
@ -75,13 +75,13 @@ class Cron
|
|||
// Repair entries in the database
|
||||
Worker::add(PRIORITY_LOW, 'RepairDatabase');
|
||||
|
||||
// Update trending tags cache for the community page
|
||||
Tag::setLocalTrendingHashtags(24, 20);
|
||||
Tag::setGlobalTrendingHashtags(24, 20);
|
||||
|
||||
// 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);
|
||||
|
||||
// Search for new contacts in the directory
|
||||
if (DI::config()->get('system', 'synchronize_directory')) {
|
||||
Worker::add(PRIORITY_LOW, 'PullDirectory');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue