-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Annotations - Caching #52
Labels
Comments
+1 Exactly this happens to me also. |
I had same problem... seems to be a problem with DataAnnotation resource that in some way continue to reference the first ISqlLocalizer object created, also after cleaning the internal cache dictionary. I solved in this way: SqlStringLocalizerFactory.cs :
SqlStringLocalizer.cs:
|
Could this bug fix be implemented please? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using ASP.NET Core 2 together with this adaptation of AspNetCoreLocalization. I'm however a bit 'stuck' on resetting the cache for my data annotation translations.
When I reset the cache, everything is updated (global translations (custom) and my resource translations) however, my data annotations refuse to be 'updated', even though they should be used as resource translations (stock behaviour).
Is there any way I can also make the data annotation translations reset cache?
The text was updated successfully, but these errors were encountered: