From: Michael Date: Thu, 19 Jan 2017 23:07:12 +0000 (+0000) Subject: Bugfix: Quarter Hour cache was cleared every time. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7757505e40dc93daced623ff803aecbb33486c93;p=friendica.git Bugfix: Quarter Hour cache was cleared every time. --- 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));