/** * Получить блог по УРЛу * * @param string $sBlogUrl URL блога * @return ModuleBlog_EntityBlog|null */ public function GetBlogByUrl($sBlogUrl) { if (false === ($id = $this->Cache_Get("blog_url_{$sBlogUrl}"))) { if ($id = $this->oMapperBlog->GetBlogByUrl($sBlogUrl)) { $this->Cache_Set($id, "blog_url_{$sBlogUrl}", array("blog_update_{$id}"), 60 * 60 * 24 * 2); } else { $this->Cache_Set(null, "blog_url_{$sBlogUrl}", array('blog_update', 'blog_new'), 60 * 60); } } return $this->GetBlogById($id); }