mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-28 20:45:00 +03:00
fix подсчета количества топиков в блоге
This commit is contained in:
parent
a19dd20772
commit
5843543a67
|
@ -873,6 +873,8 @@ class ModuleBlog extends Module {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function RecalculateCountTopic() {
|
public function RecalculateCountTopic() {
|
||||||
|
//чистим зависимые кеши
|
||||||
|
$this->Cache_Clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG,array('blog_update'));
|
||||||
return $this->oMapperBlog->RecalculateCountTopic();
|
return $this->oMapperBlog->RecalculateCountTopic();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -882,6 +884,9 @@ class ModuleBlog extends Module {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function RecalculateCountTopicByBlogId($iBlogId) {
|
public function RecalculateCountTopicByBlogId($iBlogId) {
|
||||||
|
//чистим зависимые кеши
|
||||||
|
$this->Cache_Clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG,array('blog_update',"blog_update_{$iBlogId}"));
|
||||||
|
$this->Cache_Delete("blog_{$iBlogId}");
|
||||||
return $this->oMapperBlog->RecalculateCountTopic($iBlogId);
|
return $this->oMapperBlog->RecalculateCountTopic($iBlogId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue