You are here

protected function XcacheCache::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/XcacheCache.php, line 70

Class

XcacheCache
Xcache cache driver.

Namespace

Doctrine\Common\Cache

Code

protected function doFlush() {
  $this
    ->checkAuthorization();
  xcache_clear_cache(XC_TYPE_VAR);
  return true;
}