Browse Source

Bugfix: Quarter Hour cache was cleared every time.

pull/3096/head
Michael 4 years ago
parent
commit
7757505e40
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/cache.php

+ 1
- 1
include/cache.php View 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));


Loading…
Cancel
Save