mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
fixed caching problem for get document item
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10801 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7f54f7b14e
commit
873e014713
2 changed files with 12 additions and 1 deletions
|
|
@ -727,6 +727,17 @@ class documentController extends document {
|
|||
$output = executeQuery('document.updateReadedCount', $args);
|
||||
// Register session
|
||||
$_SESSION['readed_document'][$document_srl] = true;
|
||||
//remove from cache
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_key = 'object:'.$document_srl;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
$oCacheHandler->invalidateGroupKey('documentList');
|
||||
//remove document item from cache
|
||||
$cache_key = 'object_document_item:'.$document_srl;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
|
||||
// cache controll
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport()){
|
||||
if($oCacheHandler->isSupport() && !count($this->columnList)){
|
||||
$cache_key = 'object_document_item:'.$this->document_srl;
|
||||
$output = $oCacheHandler->get($cache_key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue