Skip to content

Commit

Permalink
Clear cache on update
Browse files Browse the repository at this point in the history
- Resolved: #19
  • Loading branch information
rocksdanister committed Oct 5, 2023
1 parent 11514b8 commit aff5107
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Drizzle.UI.UWP/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ public App()
else if (region.CodeTwoLetter == "GB")
userSettings.SetAndSerialize(UserSettingsConstants.WeatherUnit, UserWeatherUnits.hybrid);
}
else if (SystemInformation.Instance.IsAppUpdated)
{
logger.LogInformation("App updated, performing maintenance..");
// Clear cache incase any changes made to the impl
Services.GetRequiredService<ICacheService>().Clear();
}

// For this application dark/light theme does not make sense
// Interface design will be done assuming current theme is dark
Expand Down

0 comments on commit aff5107

Please sign in to comment.