Fix: UI not refreshing after ZFS pool operations due to caching
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user