module); if (!$oModule) { $oModule = ModuleModel::getModuleInstallClass($module->module); } if ($oModule instanceof ModuleObject && method_exists($oModule, 'recompileCache')) { call_user_func([$oModule, 'recompileCache']); } } // remove object cache if (!in_array(Cache::getDriverName(), array('file', 'sqlite', 'dummy'))) { Cache::clearAll(); } // remove old cache dir if ($truncate_method === 'empty') { $tmp_cache_list = FileHandler::readDir(\RX_BASEDIR . 'files/cache', '/^(truncate_[0-9]+)/'); $tmp_cache_prefix = \RX_BASEDIR . 'files/cache/'; } else { $tmp_cache_list = FileHandler::readDir(\RX_BASEDIR . 'files', '/^(cache_[0-9]+)/'); $tmp_cache_prefix = \RX_BASEDIR . 'files/'; } if($tmp_cache_list) { foreach($tmp_cache_list as $tmp_dir) { if(strval($tmp_dir) !== '') { $tmp_dir = $tmp_cache_prefix . $tmp_dir; if (!Storage::isDirectory($tmp_dir)) { continue; } // If possible, use system command to speed up recursive deletion if (function_exists('exec') && !preg_match('/(?checkInstalled(); $this->setMessage('success_updated'); } }