protected function cacheUrlManager($manager)
{
if ($this->getEnableCache()) {
$cache = $this->getApplication()->getCache();
if ($cache !== null) {
$dependencies = null;
if ($this->getApplication()->getMode() !== TApplicationMode::Performance) {
if ($manager instanceof TUrlMapping && ($fn = $manager->getConfigFile())) {
$fn = Prado::getPathOfNamespace($fn, $this->getApplication()->getConfigurationFileExt());
$dependencies = new TFileCacheDependency($fn);
}
}
return $cache->set($this->getCacheKey(), $manager, 0, $dependencies);
}
}
return false;
}