/** * Disables on fly action cache * * @param string $moduleName * @param string $actionName * @return boolean */ public function disableCache($moduleName = null, $actionName = null) { if (!sfConfig::get('sf_cache')) { return false; } if (!$moduleName && !$actionName) { $moduleName = $this->component->getModuleName(); $actionName = $this->component->getActionName(); } $this->context->getViewCacheManager()->disableCache($moduleName, $actionName); return true; }
/** * Loads filters configuration for a given action instance. * * @param sfComponent $actionInstance A sfComponent instance */ public function loadConfiguration($actionInstance) { require sfContext::getInstance()->getConfigCache()->checkConfig('modules/' . $actionInstance->getModuleName() . '/config/filters.yml'); }