[ticket/494] Cache more queries on portal page

B3P-494
This commit is contained in:
Marc Alexander committed 2015-03-03 15:25:22 +01:00
1 parent a699a92e31
commit 1e405e9d91
13 files changed
+55 -62

No files matched your search

+1 -1
View File
@@ -225,7 +225,7 @@ class announcements extends module_base
AND topic_moved_id = 0
' . $post_time . '
' . $str_where;
$result = $this->db->sql_query($sql);
$result = $this->db->sql_query($sql, 300);
$total_announcements = (int) $this->db->sql_fetchfield('num_topics');
$this->db->sql_freeresult($result);
}