Skip to content

Commit

Permalink
ident_prefix & caching bugfix
Browse files Browse the repository at this point in the history
git-svn-id: svn://dklab.ru/lib/DbSimple/trunk@226 78bb956b-1e24-0410-b8d0-c528fdc9eae3
  • Loading branch information
dk committed Sep 17, 2007
1 parent 1e4160c commit aeb0221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DbSimple/Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ function _expandPlaceholders(&$queryAndArgs, $useNative=false)
$cacheCode = null;
if ($this->_logger) {
// Serialize is much faster than placeholder expansion. So use caching.
$cacheCode = crc32(serialize($queryAndArgs) . $useNative);
$cacheCode = md5(serialize($queryAndArgs) . '|' . $useNative . '|' . $this->_identPrefix);
if (isset($this->_placeholderCache[$cacheCode])) {
$queryAndArgs = $this->_placeholderCache[$cacheCode];
return;
Expand Down

0 comments on commit aeb0221

Please sign in to comment.