Revert "Add daily cached embedded content cleanup"
This reverts commit 5c47c9ed9579dc97e0a508045fe50264bb96490b (cherry picked from commit 38de059156f9a6ec63727d47a96d1b15e96e3b47)
This commit is contained in:
parent
5e44239657
commit
7899ed6f69
@ -88,12 +88,6 @@ class Cron_daily {
|
|||||||
z6_discover();
|
z6_discover();
|
||||||
|
|
||||||
call_hooks('cron_daily',datetime_convert());
|
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')));
|
set_config('system','last_expire_day',intval(datetime_convert('UTC','UTC','now','d')));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user