From c5f64ecf738cc2af4a8957c4c4ee6ae8853ba665 Mon Sep 17 00:00:00 2001 From: Pavel Zarubin Date: Sun, 20 Nov 2022 14:28:27 +0300 Subject: [PATCH] Fix clear cache action --- _build/build.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/_build/build.php b/_build/build.php index c24dd11..16863d7 100644 --- a/_build/build.php +++ b/_build/build.php @@ -664,7 +664,13 @@ protected function install() $package->save(); } if ($package->install()) { - $this->modx->runProcessor('system/clearcache'); + $action = 'system/clearcache'; + + if ($this->modx->getVersionData()['version'] === 3) { + $action = 'System/ClearCache'; + } + + $this->modx->runProcessor($action); } }