Fix: UI not refreshing after ZFS pool operations due to caching

This commit is contained in:
2025-12-16 19:58:52 +07:00
parent e1a66dc7df
commit 0c70777181
4 changed files with 21 additions and 5 deletions

View File

@@ -52,6 +52,7 @@ type App struct {
backupService *backup.Service
maintenanceService *maintenance.Service
tlsConfig *tls.Config
cache *ResponseCache
}
func New(cfg Config) (*App, error) {
@@ -175,6 +176,7 @@ func New(cfg Config) (*App, error) {
backupService: backupService,
maintenanceService: maintenanceService,
tlsConfig: tlsConfig,
cache: NewResponseCache(5 * time.Minute),
}
// Start snapshot scheduler (runs every 15 minutes)