]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Quarter Hour cache was cleared every time.
authorMichael <heluecht@pirati.ca>
Thu, 19 Jan 2017 23:07:12 +0000 (23:07 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 19 Jan 2017 23:07:12 +0000 (23:07 +0000)
include/cache.php

index e8af8f9de119ef543415f2b93523790ca9e6aa87..98799bcf40ff904c70c7b08910b72005b221be63 100644 (file)
@@ -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));