mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Provide DocumentController::clearDocumentCache()
This commit is contained in:
parent
133c29012b
commit
52729cf7ee
2 changed files with 19 additions and 16 deletions
|
|
@ -488,8 +488,7 @@ class documentAdminController extends document
|
|||
// remove from cache
|
||||
foreach($obj->document_list as $document)
|
||||
{
|
||||
Rhymix\Framework\Cache::delete('document_item:'. getNumberingPath($document->document_srl) . $document->document_srl);
|
||||
Rhymix\Framework\Cache::delete('site_and_module:document_srl:' . $document->document_srl);
|
||||
DocumentController::clearDocumentCache($document->document_srl);
|
||||
}
|
||||
|
||||
return new BaseObject();
|
||||
|
|
@ -617,8 +616,7 @@ class documentAdminController extends document
|
|||
// remove from cache
|
||||
foreach ($document_list as $document)
|
||||
{
|
||||
Rhymix\Framework\Cache::delete('document_item:'. getNumberingPath($document->document_srl) . $document->document_srl);
|
||||
Rhymix\Framework\Cache::delete('site_and_module:document_srl:' . $document->document_srl);
|
||||
DocumentController::clearDocumentCache($document->document_srl);
|
||||
}
|
||||
|
||||
return new BaseObject();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue