You are here

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

Class

FileCache
Base file cache driver.

Namespace

Doctrine\Common\Cache

Code

protected function doFlush() {
  foreach ($this
    ->getIterator() as $name => $file) {
    @unlink($name);
  }
  return true;
}