1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-14 01:22:13 +02:00

Prevent system cache overload.

This commit is contained in:
Cameron 2017-12-19 11:24:36 -08:00
parent 0bf882c0a7
commit cf7c20e168

View File

@ -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);
}