/** * {@inheritdoc} */ public function clear() { if ($this->cache instanceof FlushableCache) { return $this->cache->flushAll(); } return false; }
public function reset($class = null) { if ($class === null) { if ($this->cacheProvider instanceof \Doctrine\Common\Cache\FlushableCache) { $this->cacheProvider->flushAll(); } return parent::reset($class); } $id = $class . '#info'; $this->cacheProvider->delete($id); return parent::reset($class); }
/** * {@inheritdoc} */ public function clear() { $this->store->clear(); if ($this->cache instanceof ClearableCache) { $this->cache->deleteAll(); } else { $this->cache->flushAll(); } }
/** * {@inheritdoc} */ public function clear(array $tags = array()) { if (!empty($tags)) { foreach ($tags as $tag) { $this->flushTag($tag); } return true; } if ($this->cache instanceof FlushableCache) { return $this->cache->flushAll(); } return false; }
protected function deleteDoctrineCache(\Doctrine\Common\Cache\Cache $cacheDriver) { $cacheDriver->deleteAll(); $cacheDriver->flushAll(); }