mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-26 21:28:52 +00: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:
parent
ca9107dfba
commit
c74b68c26b
2 changed files with 8 additions and 2 deletions
|
@ -191,7 +191,10 @@ class sql_db
|
|||
$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))
|
||||
|
|
|
@ -187,7 +187,10 @@ class sql_db
|
|||
$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))
|
||||
|
|
Loading…
Add table
Reference in a new issue