public static function metas($r) { FileCache::setInstance("mySectionCache"); $nameCache = md5("section.{$r}.array"); $cache = FileCache::getCache($nameCache); if (!$cache) { $cache = Doctrine_Core::getTable('Section')->getOneByRouteWithJoins($r)->fetchOne(); $cache = $cache ? $cache->toArray() : array(); FileCache::setCache($nameCache, $cache); } $section = Utils::array2object($cache); if ($section) { static::setHttpMeta($section, 'name', 'app_title', 'description', true); return $section; } return false; }