public function indexAction() { //Zend_Debug::dump($this->_cache->getIdsMatchingTags(array('api'))); $this->view->assign(array('cacheTags' => $this->_cache->getTags())); //$cache->clean(Zend_Cache::CLEANING_MODE_ALL); //$cache->clean(Zend_Cache::CLEANING_MODE_OLD); //$cache->remove('treeCategories'); /*$xml = simplexml_load_string($cache->load('productsCategoryXml83')); Zend_Debug::dump($xml);*/ /*$cache->remove('treeCategoriesArray'); $cache->clean( Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, array( 'sectionXml', 'productsCategoryObj', 'productsCategoryXml', ) );*/ /*$cache->clean( Zend_Cache::CLEANING_MODE_MATCHING_TAG, array( 'productsCategoryXml', ) );*/ }
/** * @group tags */ public function testGetTags() { $this->setKeys(); $actual = $this->cache->getTags(); sort($actual); $this->assertEquals(array('tag_a1', 'tag_a2', 'tag_a3'), $actual); }