Ticket #122 (closed задача: invalid)

Opened 19 months ago

Last modified 9 months ago

рефакторинг модуля 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

Changed 18 months ago by ort

На самом деле есть разница, в текущем варианте кеш сбросится только если пользователь обновит свой пост, тогда как во втором варианте кеш будет сбрасываться при апдейте любого топика любого пользователя

Changed 10 months ago by ort

  • status changed from new to closed
  • resolution set to invalid

Add/Change #122 (рефакторинг модуля ModuleTopic)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
 
Note: See TracTickets for help on using tickets.