From dafac11aaa15e54c92b787393658d303f4ce84e4 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Mon, 25 Nov 2019 14:08:29 +0100 Subject: Remove move unused cache cleanup to cron --- Zotlabs/Lib/Cache.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Zotlabs/Lib/Cache.php b/Zotlabs/Lib/Cache.php index bda8de6f5..4bfb6dec7 100644 --- a/Zotlabs/Lib/Cache.php +++ b/Zotlabs/Lib/Cache.php @@ -42,12 +42,5 @@ class Cache { dbesc(datetime_convert())); } } - - - public static function clear() { - q("DELETE FROM cache WHERE updated < '%s'", - dbesc(datetime_convert('UTC','UTC',"now - 30 days"))); - } - } -- cgit v1.2.3