diff --git a/classes/cache/CacheHandler.class.php b/classes/cache/CacheHandler.class.php index 515a57284..66ad0151f 100644 --- a/classes/cache/CacheHandler.class.php +++ b/classes/cache/CacheHandler.class.php @@ -148,7 +148,7 @@ class CacheHandler extends Handler */ public function getGroupKey($keyGroupName, $key) { - return Rhymix\Framework\Cache::getRealKey($keyGroupName . ':' . $key, false); + return $keyGroupName . ':' . $key; } /** diff --git a/common/framework/cache.php b/common/framework/cache.php index 54683bf7f..955c8e157 100644 --- a/common/framework/cache.php +++ b/common/framework/cache.php @@ -298,16 +298,15 @@ class Cache * Get the actual key used by Rhymix. * * @param string $key - * @param bool $add_prefix (optional) * @return string */ - public static function getRealKey($key, $add_prefix = true) + public static function getRealKey($key) { if (preg_match('/^([^:]+):(.+)$/i', $key, $matches)) { $key = $matches[1] . '#' . self::getGroupVersion($matches[1]) . ':' . $matches[2]; } - return ($add_prefix ? self::$_prefix : '') . $key; + return self::$_prefix . $key; } }