/** * Получает список тегов из топиков открытых блогов (open,personal) * * @param int $iLimit Количество * @param int|null $iUserId ID пользователя, чью теги получаем * @return array */ public function GetOpenTopicTags($iLimit, $iUserId = null) { if (false === ($data = $this->Cache_Get("tag_{$iLimit}_{$iUserId}_open"))) { $data = $this->oMapperTopic->GetOpenTopicTags($iLimit, $iUserId); $this->Cache_Set($data, "tag_{$iLimit}_{$iUserId}_open", array('topic_update', 'topic_new'), 60 * 60 * 24 * 3); } return $data; }
/** * Получает список тегов из топиков открытых блогов (open,personal) * * @param int $nLimit - Количество * @param int|null $nUserId - ID пользователя, чью теги получаем * * @return array */ public function GetOpenTopicTags($nLimit, $nUserId = null) { $sCacheKey = "tag_{$nLimit}_{$nUserId}_open"; if (false === ($data = E::ModuleCache()->Get($sCacheKey))) { $data = $this->oMapper->GetOpenTopicTags($nLimit, $nUserId); E::ModuleCache()->Set($data, $sCacheKey, array('topic_update', 'topic_new'), 'P1D'); } return $data; }