You are here

protected function ZendDataCache::doFlush in Plug 7

Flushes all cache entries.

Return value

boolean TRUE if the cache entries were successfully flushed, FALSE otherwise.

Overrides CacheProvider::doFlush

File

lib/doctrine/cache/lib/Doctrine/Common/Cache/ZendDataCache.php, line 67

Class

ZendDataCache
Zend Data Cache cache driver.

Namespace

Doctrine\Common\Cache

Code

protected function doFlush() {
  $namespace = $this
    ->getNamespace();
  if (empty($namespace)) {
    return zend_shm_cache_clear();
  }
  return zend_shm_cache_clear($namespace);
}