/** * Empty a map service cache * @param string $repository Repository for which to remove all tile cache * @return Redirection to the index */ function removeCache() { $repository = $this->param('repository'); $repoKey = lizmapProxy::clearCache($repository); if ($repoKey) { jMessage::add(jLocale::get("admin~admin.cache.repository.removed", array($repoKey))); } // Redirect to the index $rep = $this->getResponse("redirect"); $rep->action = "admin~config:index"; return $rep; }