diff --git a/modules/announcements.php b/modules/announcements.php index a98fb309..5d3a10a8 100644 --- a/modules/announcements.php +++ b/modules/announcements.php @@ -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); } diff --git a/modules/birthday_list.php b/modules/birthday_list.php index 9fb839f3..7e19ae5a 100644 --- a/modules/birthday_list.php +++ b/modules/birthday_list.php @@ -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)) diff --git a/modules/news.php b/modules/news.php index de37e3df..5fbf9de7 100644 --- a/modules/news.php +++ b/modules/news.php @@ -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); } diff --git a/portal/fetch_posts.php b/portal/fetch_posts.php index 8931fe3b..d99e3046 100644 --- a/portal/fetch_posts.php +++ b/portal/fetch_posts.php @@ -263,14 +263,14 @@ class fetch_posts $sql_array['SELECT'] .= ', tp.topic_posted'; $sql = $this->db->sql_build_query('SELECT', $sql_array); - // Cache queries for 10 minutes + // Cache queries for 30 seconds if ($number_of_posts != 0) { $result = $this->db->sql_query_limit($sql, $number_of_posts, $start, 600); } else { - $result = $this->db->sql_query($sql, 600); + $result = $this->db->sql_query($sql, 30); } return $result;