mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#385 commentList_{document_srl} object cache 제거
This commit is contained in:
parent
2f469bb850
commit
aa0d6e7cd8
3 changed files with 54 additions and 110 deletions
|
|
@ -469,16 +469,6 @@ class commentController extends comment
|
|||
|
||||
$output->add('comment_srl', $obj->comment_srl);
|
||||
|
||||
//remove from cache
|
||||
$oCacheHandler = CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$oCacheHandler->invalidateGroupKey('commentList_' . $document_srl);
|
||||
$oCacheHandler->invalidateGroupKey('newestCommentsList');
|
||||
|
||||
$oCacheHandler->delete('object:' . $document_srl);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
@ -736,14 +726,6 @@ class commentController extends comment
|
|||
|
||||
$output->add('comment_srl', $obj->comment_srl);
|
||||
|
||||
//remove from cache
|
||||
$oCacheHandler = CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$oCacheHandler->invalidateGroupKey('commentList_' . $obj->document_srl);
|
||||
$oCacheHandler->invalidateGroupKey('newestCommentsList');
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
@ -872,16 +854,6 @@ class commentController extends comment
|
|||
|
||||
$output->add('document_srl', $document_srl);
|
||||
|
||||
//remove from cache
|
||||
$oCacheHandler = CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$oCacheHandler->invalidateGroupKey('commentList_' . $document_srl);
|
||||
$oCacheHandler->invalidateGroupKey('newestCommentsList');
|
||||
|
||||
$oCacheHandler->delete('object:' . $document_srl);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
@ -970,14 +942,6 @@ class commentController extends comment
|
|||
$this->_deleteVotedComments($args);
|
||||
}
|
||||
|
||||
//remove from cache
|
||||
$oCacheHandler = CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$oCacheHandler->invalidateGroupKey('commentList_' . $document_srl);
|
||||
$oCacheHandler->invalidateGroupKey('newestCommentsList');
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue