#242 object cache 정리

This commit is contained in:
bnu 2014-01-06 16:48:54 +09:00
parent d4d43c1382
commit 37c5e114ec
20 changed files with 513 additions and 253 deletions

View file

@ -176,6 +176,12 @@ class layoutAdminController extends layout
{
$output = executeQuery('layout.updateModuleLayout', $update_args);
}
$oCacheHandler = CacheHandler::getInstance('object', null, true);
if($oCacheHandler->isSupport())
{
$oCacheHandler->invalidateGroupKey('site_and_module');
}
}
}
}
@ -260,7 +266,8 @@ class layoutAdminController extends layout
$oCacheHandler = CacheHandler::getInstance('object', null, true);
if($oCacheHandler->isSupport())
{
$cache_key = 'object:'.$args->layout_srl;
$object_key = 'layout:' . $args->layout_srl;
$cache_key = $oCacheHandler->getGroupKey('site_and_module', $object_key);
$oCacheHandler->delete($cache_key);
}
}
@ -333,7 +340,8 @@ class layoutAdminController extends layout
$oCacheHandler = CacheHandler::getInstance('object', null, true);
if($oCacheHandler->isSupport())
{
$cache_key = 'object:'.$layout_srl;
$object_key = 'layout:'.$layout_srl;
$cache_key = $oCacheHandler->getGroupKey('site_and_module', $object_key);
$oCacheHandler->delete($cache_key);
}
if(!$output->toBool()) return $output;