Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Dec 10, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -136,7 +136,7 @@ public function get_template_center($module_id)
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 @@ public function get_template_center($module_id)
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 @@ public function get_template_center($module_id)
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']))
{
@@ -266,7 +266,7 @@ protected function run_sql_query($post_time, $number_of_posts, $start)
// 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
{
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.