aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache/driver
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-08-06 16:26:55 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-08-06 16:26:55 -0500
commitdcefa16318f6dc1058595a7ba221b75ed6a2504b (patch)
tree4949582266a91adb9fa5ea210dc7c811953ee393 /phpBB/includes/cache/driver
parent01bc818d465ab168288e260745a045ff2794648d (diff)
downloadforums-dcefa16318f6dc1058595a7ba221b75ed6a2504b.tar
forums-dcefa16318f6dc1058595a7ba221b75ed6a2504b.tar.gz
forums-dcefa16318f6dc1058595a7ba221b75ed6a2504b.tar.bz2
forums-dcefa16318f6dc1058595a7ba221b75ed6a2504b.tar.xz
forums-dcefa16318f6dc1058595a7ba221b75ed6a2504b.zip
[ticket/10875] Return $query_id from sql_save
Have to return the $query_id from sql_save so that the results can be pulled Updated cache test to do some basic sql cache testing. PHPBB3-10875
Diffstat (limited to 'phpBB/includes/cache/driver')
-rw-r--r--phpBB/includes/cache/driver/file.php2
-rw-r--r--phpBB/includes/cache/driver/memory.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/cache/driver/file.php b/phpBB/includes/cache/driver/file.php
index da942b921c..f64a9e3ea8 100644
--- a/phpBB/includes/cache/driver/file.php
+++ b/phpBB/includes/cache/driver/file.php
@@ -385,6 +385,8 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base
{
$query_result = $query_id;
}
+
+ return $query_id;
}
/**
diff --git a/phpBB/includes/cache/driver/memory.php b/phpBB/includes/cache/driver/memory.php
index aabad2bb6c..92971c6cb2 100644
--- a/phpBB/includes/cache/driver/memory.php
+++ b/phpBB/includes/cache/driver/memory.php
@@ -335,6 +335,8 @@ class phpbb_cache_driver_memory extends phpbb_cache_driver_base
$this->_write('sql_' . $hash, $this->sql_rowset[$query_id], $ttl);
$query_result = $query_id;
+
+ return $query_id;
}
/**