/** * Clears mobile and portal metadata caches that have been created by the API * to allow immediate rendering of changes at the client */ protected function _clearCaches() { if ($this->implementation->isDeployed()) { // Installing and trying to refresh the modules cache is bad juju if (!empty($GLOBALS['installing'])) { // Use the clear NOW method so that if there is a cache it is wiped MetaDataManager::clearAPICache(true, true); } else { MetaDataManager::refreshModulesCache(array($this->_moduleName)); } parent::_clearCaches(); } }