mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Fixed cache bug - newest comment list was not updated after deleting a comment.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9592 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
af872e66ec
commit
2393eb6d00
2 changed files with 2 additions and 5 deletions
|
|
@ -244,8 +244,6 @@
|
|||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_key_newest = 'object_newest_comment_list:'.$obj->module_srl;
|
||||
$oCacheHandler->delete($cache_key_newest);
|
||||
$oCacheHandler->invalidateGroupKey('commentList');
|
||||
}
|
||||
return $output;
|
||||
|
|
@ -328,8 +326,6 @@
|
|||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_key_newest = 'object_newest_comment_list:'.$obj->module_srl;
|
||||
$oCacheHandler->delete($cache_key_newest);
|
||||
$oCacheHandler->invalidateGroupKey('commentList');
|
||||
}
|
||||
return $output;
|
||||
|
|
|
|||
|
|
@ -189,7 +189,8 @@
|
|||
// cache controll
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport()){
|
||||
$cache_key = 'object_newest_comment_list:'.$obj->module_srl;
|
||||
$object_key = 'object_newest_comment_list:'.$obj->module_srl;
|
||||
$cache_key = $oCacheHandler->getGroupKey('commentList', $object_key);
|
||||
$output = $oCacheHandler->get($cache_key);
|
||||
}
|
||||
if(!$output){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue