diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-07-30 18:44:40 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-07-30 18:44:40 -0500 |
commit | 01bc818d465ab168288e260745a045ff2794648d (patch) | |
tree | 299973235aa927758e62711ff686e391ac242933 /phpBB/includes/db/sqlite.php | |
parent | edcac438df164764c84ca9fb7a7f751bf76d5c34 (diff) | |
download | forums-01bc818d465ab168288e260745a045ff2794648d.tar forums-01bc818d465ab168288e260745a045ff2794648d.tar.gz forums-01bc818d465ab168288e260745a045ff2794648d.tar.bz2 forums-01bc818d465ab168288e260745a045ff2794648d.tar.xz forums-01bc818d465ab168288e260745a045ff2794648d.zip |
[ticket/10875] Fix SQL Caching
The sql_save function cannot take arguments by reference since it is called
by call_user_func_array()
Replace use of isset($cache->sql_rowset[$query_id]) with $cache->sql_exists
Replace $cache->cache_dir with $cache->get_driver()->cache_dir
PHPBB3-10875
Diffstat (limited to 'phpBB/includes/db/sqlite.php')
-rw-r--r-- | phpBB/includes/db/sqlite.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/db/sqlite.php b/phpBB/includes/db/sqlite.php index d930567773..814b593f05 100644 --- a/phpBB/includes/db/sqlite.php +++ b/phpBB/includes/db/sqlite.php @@ -193,7 +193,7 @@ class dbal_sqlite extends dbal $query_id = $this->query_result; } - if (isset($cache->sql_rowset[$query_id])) + if ($cache->sql_exists($query_id)) { return $cache->sql_fetchrow($query_id); } @@ -214,7 +214,7 @@ class dbal_sqlite extends dbal $query_id = $this->query_result; } - if (isset($cache->sql_rowset[$query_id])) + if ($cache->sql_exists($query_id)) { return $cache->sql_rowseek($rownum, $query_id); } @@ -242,7 +242,7 @@ class dbal_sqlite extends dbal $query_id = $this->query_result; } - if (isset($cache->sql_rowset[$query_id])) + if ($cache->sql_exists($query_id)) { return $cache->sql_freeresult($query_id); } |