From cf7c20e168e555cb082473ad288f1e334e9915aa Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 19 Dec 2017 11:24:36 -0800 Subject: [PATCH] Prevent system cache overload. --- e107_handlers/news_class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/news_class.php b/e107_handlers/news_class.php index e380aa5b5..f01820315 100644 --- a/e107_handlers/news_class.php +++ b/e107_handlers/news_class.php @@ -773,7 +773,7 @@ class e_news_tree extends e_front_tree_model LEFT JOIN #news_category AS nc ON n.news_category = nc.category_id {$where} ORDER BY ".$db_order." LIMIT ".$db_limit; - + $this->setParam('db_query', $query); return parent::load($force); @@ -799,6 +799,8 @@ class e_news_tree extends e_front_tree_model "; $params['db_where'] = $where; + + $this->_cache_string = null; // disable sys cache, otherwise we get a new cache file every time the time() changes. return $this->loadJoin($category_id, $force, $params); }