You are here

protected function XcacheCache::doFlush in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php \Doctrine\Common\Cache\XcacheCache::doFlush()

Flushes all cache entries.

Return value

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

Overrides CacheProvider::doFlush

File

vendor/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;
}