mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Changed the way comment lists are removed from cache - instead of delete, key incrementing is now used.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9501 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a69023da83
commit
441ef79f1b
4 changed files with 51 additions and 101 deletions
|
|
@ -78,17 +78,12 @@
|
|||
}
|
||||
|
||||
$oDB->commit();
|
||||
|
||||
|
||||
//remove from cache
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_object = $oCacheHandler->get('comment_list_document_pages');
|
||||
foreach ($cache_object as $object){
|
||||
$cache_key = $object;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
$oCacheHandler->delete('comment_list_document_pages');
|
||||
$oCacheHandler->invalidateGroupKey('commentList');
|
||||
}
|
||||
|
||||
$msgCode = '';
|
||||
|
|
@ -176,14 +171,9 @@
|
|||
$output = executeQuery('comment.deleteModuleCommentsList', $args);
|
||||
//remove from cache
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_object = $oCacheHandler->get('comment_list_document_pages');
|
||||
foreach ($cache_object as $object){
|
||||
$cache_key = $object;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
$oCacheHandler->delete('comment_list_document_pages');
|
||||
$oCacheHandler->invalidateGroupKey('commentList');
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue