mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-21 01:42:30 +01: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
@ -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…
x
Reference in New Issue
Block a user