対症療法ですが、プラグインで解決する方法が分かったのでシェアします
コード: 全て選択
if($mode==='new') $modx->cacheManager->refresh();
コード: 全て選択
if($mode==='new') $modx->cacheManager->refresh();
コード: 全て選択
public function clearCache() {
$clear = $this->getProperty('syncsite',false) || $this->getProperty('clearCache',false);
if ($clear) {
$this->modx->cacheManager->refresh(array(
コード: 全て選択
/**
* Get a specific property.
* @param string $k
* @param mixed $default
* @return mixed
*/
public function getProperty($k,$default = null) {
return array_key_exists($k,$this->properties) ? $this->properties[$k] : $default;
}
コード: 全て選択
if($mode==='new') $modx->cacheManager->refresh();
コード: 全て選択
public function clearCache() {
$clear = $this->getProperty('syncsite',false) || $this->getProperty('clearCache',false) || $mode === 'new' ;
if ($clear) {
$this->modx->cacheManager->refresh(array(
コード: 全て選択
public function clearCache() {
$clear = $this->getProperty('syncsite',false) || $this->getProperty('clearCache',false) || $mode === 'new' ;
if ($clear) {
$this->modx->cacheManager->refresh(array(
コード: 全て選択
[syncsite] => 0