diff --git a/components/com_content/models/article.php b/components/com_content/models/article.php index 4636d2a4bbf0b..dddacbfd3cb03 100644 --- a/components/com_content/models/article.php +++ b/components/com_content/models/article.php @@ -353,6 +353,8 @@ public function storeVote($pk = 0, $rate = 0) } } + $this->cleanCache(); + return true; } @@ -360,4 +362,25 @@ public function storeVote($pk = 0, $rate = 0) return false; } + + /** + * Cleans the cache of com_content and content modules + * + * @param string $group The cache group + * @param integer $clientId The ID of the client + * + * @return void + * + * @since __DEPLOY_VERSION__ + */ + protected function cleanCache($group = null, $clientId = 0) + { + parent::cleanCache('com_content'); + parent::cleanCache('mod_articles_archive'); + parent::cleanCache('mod_articles_categories'); + parent::cleanCache('mod_articles_category'); + parent::cleanCache('mod_articles_latest'); + parent::cleanCache('mod_articles_news'); + parent::cleanCache('mod_articles_popular'); + } }