mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 20:02:15 +09:00
#242 object cache 정리
This commit is contained in:
parent
06a9e9fdac
commit
55c76dcd78
20 changed files with 513 additions and 253 deletions
|
|
@ -376,37 +376,22 @@ class commentModel extends comment
|
|||
|
||||
$args->list_count = $obj->list_count;
|
||||
|
||||
// cache controll
|
||||
$oCacheHandler = CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
if(strpos($args->module_srl, ",") === false)
|
||||
{
|
||||
$object_key = 'object_newest_comment_list:' . $obj->module_srl;
|
||||
$cache_key = $oCacheHandler->getGroupKey('newestCommentsList', $object_key);
|
||||
$output = $oCacheHandler->get($cache_key);
|
||||
}
|
||||
if(!$output)
|
||||
{
|
||||
if(strpos($args->module_srl, ",") === false)
|
||||
if($args->module_srl)
|
||||
{
|
||||
if($args->module_srl)
|
||||
// check if module is using comment validation system
|
||||
$oCommentController = getController("comment");
|
||||
$is_using_validation = $oCommentController->isModuleUsingPublishValidation($obj->module_srl);
|
||||
if($is_using_validation)
|
||||
{
|
||||
// check if module is using comment validation system
|
||||
$oCommentController = getController("comment");
|
||||
$is_using_validation = $oCommentController->isModuleUsingPublishValidation($obj->module_srl);
|
||||
if($is_using_validation)
|
||||
{
|
||||
$args->status = 1;
|
||||
}
|
||||
$args->status = 1;
|
||||
}
|
||||
}
|
||||
|
||||
$output = executeQuery('comment.getNewestCommentList', $args, $columnList);
|
||||
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$oCacheHandler->put($cache_key, $output);
|
||||
}
|
||||
}
|
||||
|
||||
$output = executeQuery('comment.getNewestCommentList', $args, $columnList);
|
||||
|
||||
if(!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue