From ea96846d28ad58959ed4bb735c5885215f267dc5 Mon Sep 17 00:00:00 2001 From: bnu Date: Sun, 5 Jan 2014 00:28:19 +0900 Subject: [PATCH] =?UTF-8?q?#242=20cache=20key=EA=B0=80=20=EC=97=86?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=20=ED=8F=B4=EB=8D=94=20permission=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=EB=B0=8F=20cache=20groupkey=20=EC=A0=95=EB=A6=AC.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/cache/CacheHandler.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/cache/CacheHandler.class.php b/classes/cache/CacheHandler.class.php index 2a4519cf7..baa96ca72 100644 --- a/classes/cache/CacheHandler.class.php +++ b/classes/cache/CacheHandler.class.php @@ -169,6 +169,8 @@ class CacheHandler extends Handler */ function put($key, $obj, $valid_time = 0) { + if(!$key) return false; + $key = $this->getCacheKey($key); if(!$this->handler) { @@ -249,7 +251,7 @@ class CacheHandler extends Handler $this->handler->put('key_group_versions', $this->keyGroupVersions, 0); } - return $this->keyGroupVersions[$keyGroupName] . ':' . $keyGroupName . ':' . $key; + return 'cache_group_' . $this->keyGroupVersions[$keyGroupName] . ':' . $keyGroupName . ':' . $key; } /**