Interim commit.
[yaffs-website] / web / modules / contrib / memcache / src / DrupalMemcacheBase.php
index 3199e2dd7bb854bd3f5bba7942898b92d390fb25..f455428645a32178523f259260d89d13416ef4ef 100644 (file)
@@ -86,7 +86,7 @@ abstract class DrupalMemcacheBase implements DrupalMemcacheInterface {
     // hashing algorithm. Sha1 was selected as the default as it performs
     // quickly with minimal collisions.
     if (strlen($full_key) > 250) {
-      $full_key = urlencode(hash($this->hashAlgorithm, $key));
+      $full_key = urlencode(hash($this->hashAlgorithm, $this->prefix . '-' . $key));
     }
 
     return $full_key;