public function indexAction() { Translation_Model_Manager::generate(); Centurion_Signal::factory('clean_cache')->send($this); Centurion_Loader_PluginLoader::cleanCache(Centurion_Loader_PluginLoader::getIncludeFileCache()); Centurion_Loader_PluginLoader::setStaticCachePlugin(null); }
public function clearCacheAction() { //$caches = array(); // foreach (Centurion_Config_Manager::get('resources.cachemanager') as $key => $value) { // Zend_Cache::_makeBackend($value['backend']['name'], $value['backend']['options'])->clean(Zend_Cache::CLEANING_MODE_ALL); // } Centurion_Signal::factory('clean_cache')->send($this); Centurion_Loader_PluginLoader::cleanCache(Centurion_Loader_PluginLoader::getIncludeFileCache()); Centurion_Loader_PluginLoader::setStaticCachePlugin(null); }
public function tearDown() { global $application; Centurion_Controller_Front::getInstance()->resetInstance(); $this->resetRequest(); $this->resetResponse(); $this->request->setPost(array()); $this->request->setQuery(array()); Centurion_Signal::unregister(); Centurion_Auth::getInstance()->clearIdentity(); Centurion_Loader_PluginLoader::cleanCache(); return $application->getBootstrap()->bootstrap('cachemanager'); }