mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Fix possible bug with cache invalidation in moveDocumentModule()
This commit is contained in:
parent
74b07cb5c4
commit
b6a528bcaf
1 changed files with 12 additions and 4 deletions
|
|
@ -407,9 +407,13 @@ class documentAdminController extends document
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(!is_array($document_srl_list))
|
||||||
|
{
|
||||||
|
$document_srl_list = array_map('intval', array_map('trim', explode(',', $document_srl_list)));
|
||||||
|
}
|
||||||
|
|
||||||
$obj = new stdClass;
|
$obj = new stdClass;
|
||||||
$obj->document_srls = implode(',', $document_srl_list);
|
$obj->document_srls = $document_srl_list;
|
||||||
$obj->list_count = count($document_srl_list);
|
$obj->list_count = count($document_srl_list);
|
||||||
$obj->document_list = executeQueryArray('document.getDocuments', $obj)->data;
|
$obj->document_list = executeQueryArray('document.getDocuments', $obj)->data;
|
||||||
$obj->module_srl = $target_module_srl;
|
$obj->module_srl = $target_module_srl;
|
||||||
|
|
@ -478,9 +482,9 @@ class documentAdminController extends document
|
||||||
$oDB->commit();
|
$oDB->commit();
|
||||||
|
|
||||||
// remove from cache
|
// remove from cache
|
||||||
foreach ($document_srl_list as $document_srl)
|
foreach($obj->document_list as $document)
|
||||||
{
|
{
|
||||||
Rhymix\Framework\Cache::delete('document_item:'. getNumberingPath($document_srl) . $document_srl);
|
Rhymix\Framework\Cache::delete('document_item:'. getNumberingPath($document->document_srl) . $document->document_srl);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new BaseObject();
|
return new BaseObject();
|
||||||
|
|
@ -499,9 +503,13 @@ class documentAdminController extends document
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(!is_array($document_srl_list))
|
||||||
|
{
|
||||||
|
$document_srl_list = array_map('intval', array_map('trim', explode(',', $document_srl_list)));
|
||||||
|
}
|
||||||
|
|
||||||
$obj = new stdClass;
|
$obj = new stdClass;
|
||||||
$obj->document_srls = implode(',', $document_srl_list);
|
$obj->document_srls = $document_srl_list;
|
||||||
$obj->list_count = count($document_srl_list);
|
$obj->list_count = count($document_srl_list);
|
||||||
$obj->document_list = executeQueryArray('document.getDocuments', $obj)->data;
|
$obj->document_list = executeQueryArray('document.getDocuments', $obj)->data;
|
||||||
$obj->module_srl = $target_module_srl;
|
$obj->module_srl = $target_module_srl;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue