[ticket/666] Reduce caching time of post related queries

B3P-666
This commit is contained in:
Marc Alexander
2015-12-10 10:37:04 +01:00
parent a152da8dbd
commit 278765ed30
2 changed files with 4 additions and 4 deletions

View File

@@ -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']))
{