protected function cacheSqlMapManager($manager)
{
if ($this->getEnableCache()) {
$cache = $this->getApplication()->getCache();
if ($cache !== null) {
$dependencies = null;
if ($this->getApplication()->getMode() !== TApplicationMode::Performance) {
$dependencies = $manager->getCacheDependencies();
}
return $cache->set($this->getCacheKey(), $manager, 0, $dependencies);
}
}
return false;
}