From 1369d09cbdb3954ec899e275a051a100aa832706 Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Mon, 9 Feb 2026 18:24:59 -0500 Subject: [PATCH] fix: invalidate playlist cache when schedule is updated Playlist summary cache now refreshes immediately when sync schedules are changed. --- allstarr/Controllers/AdminController.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/allstarr/Controllers/AdminController.cs b/allstarr/Controllers/AdminController.cs index 33adaed..faaa574 100644 --- a/allstarr/Controllers/AdminController.cs +++ b/allstarr/Controllers/AdminController.cs @@ -1528,6 +1528,12 @@ public class AdminController : ControllerBase _logger.LogInformation("Config file updated successfully at {Path}", _envFilePath); + // Invalidate playlist summary cache if playlists were updated + if (appliedUpdates.Contains("SPOTIFY_IMPORT_PLAYLISTS")) + { + InvalidatePlaylistSummaryCache(); + } + return Ok(new { message = "Configuration updated. Restart container to apply changes.",