diff --git a/modules/recent.php b/modules/recent.php index 95163620..7b83db25 100644 --- a/modules/recent.php +++ b/modules/recent.php @@ -136,7 +136,7 @@ class recent extends module_base AND topic_moved_id = 0 ' . $sql_where . $forum_sql . ' ORDER BY topic_time DESC'; - $result = $this->db->sql_query_limit($sql, $this->config['board3_max_topics_' . $module_id], 0 , 600); + $result = $this->db->sql_query_limit($sql, $this->config['board3_max_topics_' . $module_id], 0 , 30); while (($row = $this->db->sql_fetchrow($result)) && ($row['topic_title'])) { @@ -162,7 +162,7 @@ class recent extends module_base AND topic_moved_id = 0 ' . $sql_where . $forum_sql . ' ORDER BY topic_time DESC'; - $result = $this->db->sql_query_limit($sql, $this->config['board3_max_topics_' . $module_id], 0, 600); + $result = $this->db->sql_query_limit($sql, $this->config['board3_max_topics_' . $module_id], 0, 30); while (($row = $this->db->sql_fetchrow($result)) && ($row['topic_title'])) { @@ -189,7 +189,7 @@ class recent extends module_base AND topic_moved_id = 0 ' . $sql_where . $forum_sql . ' ORDER BY topic_time DESC'; - $result = $this->db->sql_query_limit($sql, $this->config['board3_max_topics_' . $module_id], 0, 600); + $result = $this->db->sql_query_limit($sql, $this->config['board3_max_topics_' . $module_id], 0, 30); while (($row = $this->db->sql_fetchrow($result)) && ($row['topic_title'])) { diff --git a/portal/fetch_posts.php b/portal/fetch_posts.php index d99e3046..6dc7f46f 100644 --- a/portal/fetch_posts.php +++ b/portal/fetch_posts.php @@ -266,7 +266,7 @@ class fetch_posts // Cache queries for 30 seconds if ($number_of_posts != 0) { - $result = $this->db->sql_query_limit($sql, $number_of_posts, $start, 600); + $result = $this->db->sql_query_limit($sql, $number_of_posts, $start, 30); } else {