mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-10 07:58:39 -05:00
fix: invalidate playlist cache when schedule is updated
Playlist summary cache now refreshes immediately when sync schedules are changed.
This commit is contained in:
@@ -1528,6 +1528,12 @@ public class AdminController : ControllerBase
|
|||||||
|
|
||||||
_logger.LogInformation("Config file updated successfully at {Path}", _envFilePath);
|
_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
|
return Ok(new
|
||||||
{
|
{
|
||||||
message = "Configuration updated. Restart container to apply changes.",
|
message = "Configuration updated. Restart container to apply changes.",
|
||||||
|
|||||||
Reference in New Issue
Block a user