Commit 70c8cb2a authored by Jeremy's avatar Jeremy

Be sure ->flushes exists before using it.

parent 1d05fe9a
......@@ -219,7 +219,10 @@ class MemCacheDrupal implements DrupalCacheInterface {
* Check if a wildcard flush has invalidated the current cached copy.
private function wildcard_valid($cid, $cache) {
if ((int)$cache->flushes < (int)$this->wildcard_flushes($cid)) {
// Previously cached content won't have ->flushes defined. We could
// force flush, but instead leave this up to the site admin.
$flushes = isset($cache->flushes) ? (int)$cache->flushes : 0;
if ($flushes < (int)$this->wildcard_flushes($cid)) {
return FALSE;
return TRUE;
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