mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-06 06:07:29 +02:00
fix wrong config param being used & add a link to cron syntax we support
This commit is contained in:
parent
b25684a5a6
commit
dba83a639c
@ -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 */
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user