[ticket/644] Reduce caching time on portal page
B3P-644
This commit is contained in:
@@ -225,7 +225,7 @@ class announcements extends module_base
|
||||
AND topic_moved_id = 0
|
||||
' . $post_time . '
|
||||
' . $str_where;
|
||||
$result = $this->db->sql_query($sql, 300);
|
||||
$result = $this->db->sql_query($sql, 30);
|
||||
$total_announcements = (int) $this->db->sql_fetchfield('num_topics');
|
||||
$this->db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ class birthday_list extends module_base
|
||||
'ORDER BY' => $order_by,
|
||||
);
|
||||
$sql = $this->db->sql_build_query('SELECT', $sql_array);
|
||||
$result = $this->db->sql_query($sql, 3600);
|
||||
$result = $this->db->sql_query($sql, 300);
|
||||
$today = sprintf('%2d-%2d-', $now['mday'], $now['mon']);
|
||||
|
||||
while ($row = $this->db->sql_fetchrow($result))
|
||||
|
||||
@@ -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, 300);
|
||||
$result = $this->db->sql_query($sql, 30);
|
||||
$total_news = (int) $this->db->sql_fetchfield('num_topics');
|
||||
$this->db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user