Commit 5e442396 authored by Max Kostikov's avatar Max Kostikov Committed by Mario
Browse files

Add daily cached embedded content cleanup

(cherry picked from commit 5c47c9ed9579dc97e0a508045fe50264bb96490b)
parent 17cd452f
......@@ -88,6 +88,12 @@ class Cron_daily {
z6_discover();
call_hooks('cron_daily',datetime_convert());
// 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')
);
set_config('system','last_expire_day',intval(datetime_convert('UTC','UTC','now','d')));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment