summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorJamie Matthews <[email protected]>2011-01-09 20:37:42 +0000
committerJamie Matthews <[email protected]>2011-01-09 20:37:42 +0000
commitde62584e0f79b83d6eca7c66878141c5c0546756 (patch)
treef6e7f54bccf326d2d1f9831deeecaa112aff7936 /idiorm.php
parent6fad05968483c255a5c768b1cabbab15a4dffc30 (diff)
Fix cache key generation bug
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/idiorm.php b/idiorm.php
index 4c3000b..ceff8fa 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -872,7 +872,8 @@
*/
protected static function _create_cache_key($query, $parameters) {
$parameter_string = join(',', $parameters);
- return sha1($query . ':' . $parameters);
+ $key = $query . ':' . $parameter_string;
+ return sha1($key);
}
/**