mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 02:42:23 +09:00
Caching implementation for objects
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8745 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1b47a294d3
commit
70a69ff4fe
18 changed files with 709 additions and 322 deletions
|
|
@ -240,6 +240,17 @@
|
|||
|
||||
|
||||
$output->add('comment_srl', $obj->comment_srl);
|
||||
//remove from cache
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
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');
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
@ -316,6 +327,17 @@
|
|||
$oDB->commit();
|
||||
|
||||
$output->add('comment_srl', $obj->comment_srl);
|
||||
//remove from cache
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
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');
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
@ -379,6 +401,17 @@
|
|||
$oDB->commit();
|
||||
|
||||
$output->add('document_srl', $document_srl);
|
||||
//remove from cache
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
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');
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
@ -431,6 +464,17 @@
|
|||
$this->_deleteDeclaredComments($args);
|
||||
$this->_deleteVotedComments($args);
|
||||
}
|
||||
//remove from cache
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
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');
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue