Commit 37c94c5b authored by Jeremy's avatar Jeremy

#958930: do not flush memcache each time cron runs.

parent bb5b9a1b
......@@ -133,7 +133,14 @@ class MemCacheDrupal implements DrupalCacheInterface {
function clear($cid = NULL, $wildcard = FALSE) {
if (empty($cid) || $wildcard === TRUE) {
if ($cid == '*') {
// system_cron() flushes all cache bins returned by hook_flush_caches()
// with cache_clear_all(NULL, $bin); This is for garbage collection with
// the database cache, but serves no purpose with memcache. So return
// early here.
if (!isset($cid)) {
return;
}
elseif ($cid == '*') {
$cid = '';
}
if ($this->cache_lifetime && empty($cid)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment