minor fixes on confirmations

This commit is contained in:
2026-05-04 00:05:38 +02:00
parent d31c8a1e11
commit a30a90741e
4 changed files with 24 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
package zw.qantra.tm.domain.controllers;
import lombok.RequiredArgsConstructor;
import org.springframework.cache.CacheManager;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -36,6 +37,13 @@ public class ConfigController {
private final ProviderService providerService;
private final CategoryService categoryService;
private final IntegrationProcessorService integrationProcessorService;
private final CacheManager cacheManager;
@GetMapping("/cache/clear")
public ResponseEntity clearCache(){
cacheManager.getCacheNames().forEach(name -> cacheManager.getCache(name).clear());
return ResponseEntity.ok("Cache cleared");
}
@GetMapping("/seed/live")
public ResponseEntity seedLiveConfig(){