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:
ucorina 2011-10-11 16:16:58 +00:00
parent af872e66ec
commit 2393eb6d00
2 changed files with 2 additions and 5 deletions

View file

@ -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;

View file

@ -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){