Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

SettingsManager old value cached for tenant #10170


User avatar
0
Astech created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    Astech created

    Hi,

    Does this mean there is no way to clear existing cache through the app using the memory cache?

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.