diff -u b/includes/cache.inc b/includes/cache.inc --- b/includes/cache.inc +++ b/includes/cache.inc @@ -1,15 +1,15 @@ expire != CACHE_PERMANENT && variable_get('cache_lifetime', 0) && $user->cache > $cache->created) { // This cache data is too old and thus not valid for us, ignore it. return FALSE; @@ -326,12 +330,12 @@ $cache_flush = variable_get('cache_flush_' . $this->bin, 0); if ($cache_flush == 0) { - // This is the first request to clear the cache, start a timer. + // This is the first request to clear the cache; start a timer. variable_set('cache_flush_' . $this->bin, REQUEST_TIME); } elseif (REQUEST_TIME > ($cache_flush + variable_get('cache_lifetime', 0))) { - // Clear the cache for everyone, cache_lifetime seconds have - // passed since the first request to clear the cache. + // Clear the cache for everyone; cache_lifetime seconds have passed + // since the first request to clear the cache. db_delete($this->bin) ->condition('expire', CACHE_PERMANENT, '<>') ->condition('expire', REQUEST_TIME, '<') @@ -340,7 +344,7 @@ } } else { - // No minimum cache lifetime, flush all temporary cache entries now. + // No minimum cache lifetime; flush all temporary cache entries now. db_delete($this->bin) ->condition('expire', CACHE_PERMANENT, '<>') ->condition('expire', REQUEST_TIME, '<') @@ -355,7 +359,8 @@ // often since this will remove temporary cache items indiscriminately. $cache_flush = variable_get('cache_flush_' . $this->bin, 0); if ($cache_flush && ($cache_flush + variable_get('cache_lifetime', 0) <= REQUEST_TIME)) { - // Reset the variable immediately to prevent a meltdown in heavy load situations. + // Reset the variable immediately to prevent a meltdown in heavy load + // situations. variable_set('cache_flush_' . $this->bin, 0); // Time to flush old cache data db_delete($this->bin)