/** * Reload the config settings. * * @return array An associative array of configuration key/values */ public function reloadConfig() { $this->getCacheManager(); $this->cacheManager->refresh(); if (!$this->_loadConfig()) { $this->log(modX::LOG_LEVEL_ERROR, 'Could not reload core MODX configuration!'); } return $this->config; }
public function refresh(array $providers = array(), array &$results = array()) { if ($this->modx->getOption('admintools_clear_only_resource_cache', null, false) && !empty($this->modx->_clearResourceCache)) { $this->modx->_clearResourceCache = false; unset($providers['resource']); $this->modx->cacheManager = null; $this->modx->getCacheManager(); } return parent::refresh($providers, $results); }