You are here

protected function ChainCache::doDelete in Plug 7

Deletes a cache entry.

Parameters

string $id The cache id.:

Return value

boolean TRUE if the cache entry was successfully deleted, FALSE otherwise.

Overrides CacheProvider::doDelete

File

lib/doctrine/cache/lib/Doctrine/Common/Cache/ChainCache.php, line 108

Class

ChainCache
Cache provider that allows to easily chain multiple cache providers

Namespace

Doctrine\Common\Cache

Code

protected function doDelete($id) {
  $deleted = true;
  foreach ($this->cacheProviders as $cacheProvider) {
    $deleted = $cacheProvider
      ->doDelete($id) && $deleted;
  }
  return $deleted;
}