public function clearCacheSection($block_id, $section_id) { $fullCode = $this->getFullCode($section_id); $cacheDriver = new \Doctrine\Common\Cache\ApcCache(); $nameSpace = 'SectionAction_dev_' . $block_id; $cacheDriver->setNamespace($nameSpace); $cacheDriver->delete($fullCode); $nameSpace = 'SectionAction_prod_' . $block_id; $cacheDriver->setNamespace($nameSpace); $cacheDriver->delete($fullCode); }
private function clearCache($page_id) { $cacheDriver = new \Doctrine\Common\Cache\ApcCache(); $cacheDriver->delete('page_' . $page_id); }