mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +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);
|
$output = executeQuery('document.updateReadedCount', $args);
|
||||||
// Register session
|
// Register session
|
||||||
$_SESSION['readed_document'][$document_srl] = true;
|
$_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
|
// cache controll
|
||||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||||
if($oCacheHandler->isSupport()){
|
if($oCacheHandler->isSupport() && !count($this->columnList)){
|
||||||
$cache_key = 'object_document_item:'.$this->document_srl;
|
$cache_key = 'object_document_item:'.$this->document_srl;
|
||||||
$output = $oCacheHandler->get($cache_key);
|
$output = $oCacheHandler->get($cache_key);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue