AlexTeixeira / Askmethat-Aspnet-JsonLocalizer

Json Localizer library for .NetStandard and .NetCore Asp.net projects
MIT License
91 stars 29 forks source link

Using ClearMemCache #91

Closed tsugawa closed 4 years ago

tsugawa commented 4 years ago

I am changing my json file at run time. Then I execute the ClearMemCache method and refresh the view containing the keys. Should the view display the new key values?

tsugawa commented 4 years ago

Looking the source code I found this comment:

In order to use this method, JsonLocalizationOptions.ResourcesPath & JsonLocalizationOptions.IsAbsolutePath = true must be set. For more information, see: [https://github.com/AlexTeixeira/Askmethat-Aspnet-JsonLocalizer/wiki/How-file-path-works]

My IsAbsolutePath property was False