From 968cef0fc60f284d3565c18e0c9afbf67ca9e2bf Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 24 Aug 2011 17:30:17 -0400 Subject: [PATCH] strtolower() the class name in cache keys for listGet() --- classes/Memcached_DataObject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 51b1556d77..1f15aa4339 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -278,7 +278,7 @@ class Memcached_DataObject extends Safe_DataObject // We only cache keys -- not objects! foreach ($keyVals as $keyVal) { - $l = self::cacheGet(sprintf("%s:list-ids:%s:%s", $cls, $keyCol, $keyVal)); + $l = self::cacheGet(sprintf("%s:list-ids:%s:%s", strtolower($cls), $keyCol, $keyVal)); if ($l !== false) { $pkeyMap[$keyVal] = $l; foreach ($l as $pkey) { @@ -322,7 +322,7 @@ class Memcached_DataObject extends Safe_DataObject } } foreach ($toFetch as $keyVal) { - self::cacheSet(sprintf("%s:list-ids:%s:%s", $cls, $keyCol, $keyVal), + self::cacheSet(sprintf("%s:list-ids:%s:%s", strtolower($cls), $keyCol, $keyVal), $pkeyMap[$keyVal]); } } -- 2.39.5