When I change a setting "App.UiManagement.Theme" for tenant on the mobile application, the old value remains on the web application. This updates fine when the application is started fresh however, is there a way to forcefully load a setting from the db.AbpSettings?
Thanks!
- What is your product type (Angular or MVC)? MVC
- What is product framework type (.net framework or .net core)? .NET Core
- What is ABP Framework version? 6.0
3 Answer(s)
-
0
Hi @Astech
AspNet Zero uses in memory cache by default. When using it with the mobile app, it is better to use a cache system like Redis. You can take a look at https://aspnetboilerplate.com/Pages/Documents/Caching#redis-cache-integration to enable Redis in your app.
-
0
Hi,
Does this mean there is no way to clear existing cache through the app using the memory cache?
-
0
Hi,
You can update the cache value by calling SettingManager's
ChangeSetting*
methods but it might be harder to maintain settings between two apps becasue, when it is updated on the web, you might want to refresh it on the Mobile app as well.