From 7757505e40dc93daced623ff803aecbb33486c93 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 19 Jan 2017 23:07:12 +0000 Subject: [PATCH] Bugfix: Quarter Hour cache was cleared every time. --- include/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cache.php b/include/cache.php index e8af8f9de1..98799bcf40 100644 --- a/include/cache.php +++ b/include/cache.php @@ -186,7 +186,7 @@ class Cache { set_config("system", "cache_cleared_half_hour", time()); } - if (($max_level <= CACHE_QUARTER_HOUR) AND (get_config("system", "cache_cleared_hour")) < time() - self::duration(CACHE_QUARTER_HOUR)) { + if (($max_level <= CACHE_QUARTER_HOUR) AND (get_config("system", "cache_cleared_quarter_hour")) < time() - self::duration(CACHE_QUARTER_HOUR)) { q("DELETE FROM `cache` WHERE `updated` < '%s' AND `expire_mode` = %d", dbesc(datetime_convert('UTC','UTC',"now - 15 minutes")), intval(CACHE_QUARTER_HOUR)); -- 2.39.5