[ticket/494] Cache more queries on portal page
B3P-494
This commit is contained in:
1 parent
a699a92e31
commit
1e405e9d91
13 files changed
+55
-62
No files matched your search
+1
-1
@@ -218,7 +218,7 @@ class news extends module_base
|
||||
AND topic_visibility = ' . ITEM_APPROVED . '
|
||||
AND topic_moved_id = 0
|
||||
' . $str_where;
|
||||
$result = $this->db->sql_query($sql);
|
||||
$result = $this->db->sql_query($sql, 300);
|
||||
$total_news = (int) $this->db->sql_fetchfield('num_topics');
|
||||
$this->db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user