You are here

protected function MemCacheDrupal::wildcardValid in Memcache API and Integration 7

Check if a wildcard flush has invalidated the current cached copy.

1 call to MemCacheDrupal::wildcardValid()
MemCacheDrupal::valid in ./memcache.inc
Checks if a retrieved cache item is valid.

File

./memcache.inc, line 517

Class

MemCacheDrupal
Implementation of cache.inc with memcache logic included

Code

protected function wildcardValid($cid, $cache) {

  // 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
    ->wildcardFlushes($cid)) {
    return FALSE;
  }
  return TRUE;
}