mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-12 04:36:32 +02:00
Store only SELECT queries to be flushed later
git-svn-id: file:///svn/phpbb/trunk@3945 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@ -191,7 +191,10 @@ class sql_db
|
|||||||
$this->sql_report .= "<hr>\n";
|
$this->sql_report .= "<hr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->open_queries[] = $this->query_result;
|
if (preg_match('/^SELECT/', $query))
|
||||||
|
{
|
||||||
|
$this->open_queries[] = $this->query_result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($cache_result))
|
if (!empty($cache_result))
|
||||||
|
@ -187,7 +187,10 @@ class sql_db
|
|||||||
$this->sql_report .= "<hr>\n";
|
$this->sql_report .= "<hr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->open_queries[] = $this->query_result;
|
if (preg_match('/^SELECT/', $query))
|
||||||
|
{
|
||||||
|
$this->open_queries[] = $this->query_result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($cache_result))
|
if (!empty($cache_result))
|
||||||
|
Reference in New Issue
Block a user