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); } }