diff options
author | Max Kostikov <max@kostikov.co> | 2019-11-25 14:35:03 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-11-25 14:35:03 +0100 |
commit | 8f708fef9c93cd96f0ddca37337807f46d67d64d (patch) | |
tree | 9bc44c9d1af6eddd892fe328aba6cf45edc13990 | |
parent | f0b40ac15e328c8cc3cec18713213f59e5d25f1f (diff) | |
download | volse-hubzilla-8f708fef9c93cd96f0ddca37337807f46d67d64d.tar.gz volse-hubzilla-8f708fef9c93cd96f0ddca37337807f46d67d64d.tar.bz2 volse-hubzilla-8f708fef9c93cd96f0ddca37337807f46d67d64d.zip |
Add daily expired cached embedded content cleanup
-rw-r--r-- | Zotlabs/Daemon/Cron_daily.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Cron_daily.php b/Zotlabs/Daemon/Cron_daily.php index b41625963..8b398b133 100644 --- a/Zotlabs/Daemon/Cron_daily.php +++ b/Zotlabs/Daemon/Cron_daily.php @@ -50,6 +50,11 @@ class Cron_daily { dbesc('sse_id.%') ); + // Clean up emdeded contect cache + q("DELETE FROM cache WHERE updated < %s - INTERVAL %s", + db_utcnow(), + db_quoteinterval(get_config('system','active_expire_days', '30') . ' DAY') + ); //update statistics in config require_once('include/statistics_fns.php'); |