#242 cache key가 없을 때 폴더 permission 변경 문제 수정 및 cache groupkey 정리.

This commit is contained in:
bnu 2014-01-05 00:28:19 +09:00
parent 6fb5349c2e
commit 80f10ee9e7

View file

@ -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;
}
/**