if (request.getParameter ("flush_ehcache_" + cacheName) != null) {
net.sf.ehcache.Cache cache = ehcacheManager.getCache(cacheName);
if (cache != null) {
logger.info("Flushing cache: " + cacheName);
// flush without notifying the other cluster nodes
cache.removeAll(true);
// reset statistics
cache.clearStatistics();
}
}
}