diff --git a/classes/Config.php b/classes/Config.php index 57878fb42..23aaecf6b 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -188,7 +188,9 @@ class Config { * key is a 32 byte hex string which may be generated using `update.php --gen-encryption-key` */ const ENCRYPTION_KEY = "ENCRYPTION_KEY"; - /** scheduled task to purge orphaned articles, value should be valid cron expression */ + /** scheduled task to purge orphaned articles, value should be valid cron expression + * @see https://github.com/dragonmantank/cron-expression/blob/master/README.md#cron-expressions + */ const SCHEDULE_PURGE_ORPHANS = "SCHEDULE_PURGE_ORPHANS"; /** scheduled task to expire disk cache, value should be valid cron expression */ diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php index 5fc8ddcef..c0012afcb 100644 --- a/classes/RSSUtils.php +++ b/classes/RSSUtils.php @@ -1697,7 +1697,7 @@ class RSSUtils { } ); - $scheduler->add_scheduled_task('disk_cache_expire_all', Config::get(Config::SCHEDULE_PURGE_ORPHANS), + $scheduler->add_scheduled_task('disk_cache_expire_all', Config::get(Config::SCHEDULE_DISK_CACHE_EXPIRE_ALL), function() { $cache = DiskCache::instance(""); $cache->expire_all();