diff --git sites/all/modules/memcache/memcache.inc sites/all/modules/memcache/memcache.inc index de14584..3898442 100644 --- sites/all/modules/memcache/memcache.inc +++ sites/all/modules/memcache/memcache.inc @@ -188,7 +188,10 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) { elseif ($cid == '*') { $cid = ''; } - if (variable_get('cache_lifetime', 0) && empty($cid)) { + // TODO - Took out variable_get('cache_lifetime', 0) from the if condition. + // Why should '' be treated as a wildcard flush instead of a cache_flush_table + // even when variable_get('cache_lifetime', 0) is set as 0 + if (empty($cid)) { // Update the timestamp of the last global flushing of this table. When // retrieving data from this table, we will compare the cache creation // time minus the cache_flush time to the cache_lifetime to determine