mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-16 17:59:55 +09:00
#242 document item의 object cache 정리.
- 일부 기록성 데이터를 제외하고 object cache를 사용하도록 함과 이에 따라 해당 값이 변경될 때 cache를 갱신하지 않도록 변경. - readed_count, comment_count, voted_count, blamed_count, trackback_count
This commit is contained in:
parent
80f10ee9e7
commit
b29cf1fb67
3 changed files with 45 additions and 58 deletions
|
|
@ -195,9 +195,7 @@ class documentAdminController extends document
|
|||
{
|
||||
foreach($document_srl_list as $document_srl)
|
||||
{
|
||||
$cache_key = 'object:'.$document_srl;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
$cache_key_item = 'object_document_item:'.$document_srl;
|
||||
$cache_key_item = 'document_item:'.$document_srl;
|
||||
$oCacheHandler->delete($cache_key_item);
|
||||
}
|
||||
}
|
||||
|
|
@ -453,9 +451,7 @@ class documentAdminController extends document
|
|||
{
|
||||
foreach($document_srl_list as $document_srl)
|
||||
{
|
||||
$cache_key = 'object:'.$document_srl;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
$cache_key_item = 'object_document_item:'.$document_srl;
|
||||
$cache_key_item = 'document_item:'.$document_srl;
|
||||
$oCacheHandler->delete($cache_key_item);
|
||||
$oCacheHandler->invalidateGroupKey('commentList_' . $document_srl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue