diff --git a/memcache.inc b/memcache.inc index 729fa9fdffce5c1338c43dc73d583eadf4128951..2addd5ce1066b11e3a76eb16e0965c76aaddde9e 100644 --- a/memcache.inc +++ b/memcache.inc @@ -115,12 +115,12 @@ class MemCacheDrupal implements DrupalCacheInterface { * @param string $cid * The cache id of the item * @param mixed $cache - * The cache item. + * The cache item, which will be updated if needed. * * @return bool * Whether the item is valid. */ - protected function valid($cid, $cache) { + protected function valid($cid, &$cache) { if ($cache) { $cache_tables = isset($_SESSION['cache_flush']) ? $_SESSION['cache_flush'] : NULL; // Items that have expired are invalid.