mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
Fix missing extra vars when document cache is cleared in the middle of a script #2553
This commit is contained in:
parent
1d558204d1
commit
a1f452fa83
2 changed files with 9 additions and 9 deletions
|
|
@ -1775,6 +1775,7 @@ class DocumentController extends Document
|
|||
$output = executeQuery('document.updateDocumentExtraVar', $obj);
|
||||
}
|
||||
|
||||
unset($GLOBALS['XE_EXTRA_KEYS'][$module_srl]);
|
||||
Rhymix\Framework\Cache::delete("site_and_module:module_document_extra_keys:$module_srl");
|
||||
return $output;
|
||||
}
|
||||
|
|
@ -1831,6 +1832,7 @@ class DocumentController extends Document
|
|||
|
||||
$oDB->commit();
|
||||
|
||||
unset($GLOBALS['XE_EXTRA_KEYS'][$module_srl]);
|
||||
Rhymix\Framework\Cache::delete("site_and_module:module_document_extra_keys:$module_srl");
|
||||
return new BaseObject();
|
||||
}
|
||||
|
|
@ -3708,6 +3710,7 @@ Content;
|
|||
if ($type === 'all' || $type === 'extra_vars')
|
||||
{
|
||||
unset($GLOBALS['XE_EXTRA_VARS'][$document_srl]);
|
||||
unset($GLOBALS['XE_EXTRA_CHK'][$document_srl]);
|
||||
unset($GLOBALS['RX_DOCUMENT_LANG'][$document_srl]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue