Ticket #122 (new задача)
рефакторинг модуля ModuleTopic
| Reported by: | Степан Танасийчук <stepan.tanasiychuk@…> | Owned by: | ort |
|---|---|---|---|
| Priority: | нормальный | Component: | модули |
| Version: | 0.4 | Keywords: | |
| Cc: |
Description
в методе GetCountTopicsPersonalByUser?() используется устаревший кусок кода
$s=serialize($aFilter);
if (false === ($data = $this->Cache_Get("topic_count_user_{$s}"))) {
$data = $this->oMapperTopic->GetCountTopics($aFilter);
$this->Cache_Set($data, "topic_count_user_{$s}", array("topic_update_user_{$sUserId}"), 60*60*24);
}
return $data;
который можно заменить на
return $this->GetCountTopicsByFilter($aFilter);
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
