@PreAuthorize(SpringEvalExpressions.HAS_AUTH_SYSTEM_ADMIN) @Override public ResponseEntity<Collection<String>> invalidateCaches(){
  final Collection<String> cacheNames=cacheManager.getCacheNames();
  LOGGER.info("Invalidating caches {}",cacheNames);
  cacheNames.forEach(null);
  return ResponseEntity.ok(cacheNames);
}

@ PreAuthorize ( SpringEvalExpressions . HAS_AUTH_SYSTEM_ADMIN ) @ Override public ResponseEntity < Collection < String > > invalidateCaches ( ) { final Collection < String > cacheNames = cacheManager . getCacheNames ( ) ; LOGGER . info ( "Invalidating caches {}" , cacheNames ) ; cacheNames . forEach ( null ) ; return ResponseEntity . ok ( cacheNames ) ; }
invalidates all caches for all tenants .
