aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Cron_daily.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-11-25 21:50:02 +0100
committerMario <mario@mariovavti.com>2019-11-25 21:50:02 +0100
commit901785663edc7045c66d9393432a18bb376436bb (patch)
tree8e3c393a518656b1349e43205eed2554814c2924 /Zotlabs/Daemon/Cron_daily.php
parent38de059156f9a6ec63727d47a96d1b15e96e3b47 (diff)
downloadvolse-hubzilla-901785663edc7045c66d9393432a18bb376436bb.tar.gz
volse-hubzilla-901785663edc7045c66d9393432a18bb376436bb.tar.bz2
volse-hubzilla-901785663edc7045c66d9393432a18bb376436bb.zip
Fix once cached embedded content is used and stored forever
Diffstat (limited to 'Zotlabs/Daemon/Cron_daily.php')
-rw-r--r--Zotlabs/Daemon/Cron_daily.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Cron_daily.php b/Zotlabs/Daemon/Cron_daily.php
index b41625963..452ef45f1 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 emdedded content 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');