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:
parent
0bf882c0a7
commit
cf7c20e168
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user