From: Evan Prodromou Date: Wed, 24 Aug 2011 21:30:17 +0000 (-0400) Subject: strtolower() the class name in cache keys for listGet() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=968cef0fc60f284d3565c18e0c9afbf67ca9e2bf;p=quix0rs-gnu-social.git strtolower() the class name in cache keys for listGet() --- 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]); } }