Is there anyway to programmatically unload the resource cache? I have done a lot of research to see if this is possible and haven't found any answers yet. I have written a full explanation of the problem at http://techsoda.wordpress.com/2008/01/04/aspnet-reset-that-resource/.
Any thoughts would be appreciated.
I know this is a common problem, and there is no way to "unload" the cached resources from resx files without restarting the app. The only way, AFAIK, to do this is to use DB tables instead of RESX files.
This way you will get latest resources everytime a request is made, ofcourse there will be a performance hit but you cant avoid it.
I am currently using the database to store the localization data. The problem however, is that the Resource Provider Model "caches" the Resource Sets. Rick Stahl at West-Wind has a partial answer, but it doesn't really use the Resource Provider Model within
ASP.Net.
techsoda
0 Points
2 Posts
Unload Localization Resources
Jan 04, 2008 02:26 PM|LINK
Is there anyway to programmatically unload the resource cache? I have done a lot of research to see if this is possible and haven't found any answers yet. I have written a full explanation of the problem at http://techsoda.wordpress.com/2008/01/04/aspnet-reset-that-resource/. Any thoughts would be appreciated.
Mark
globalization resources localization ASP.net 2.0 App_LocalResources .resx
vivek_iit
All-Star
17778 Points
3189 Posts
MVP
Re: Unload Localization Resources
Jan 04, 2008 04:27 PM|LINK
I know this is a common problem, and there is no way to "unload" the cached resources from resx files without restarting the app. The only way, AFAIK, to do this is to use DB tables instead of RESX files.
This way you will get latest resources everytime a request is made, ofcourse there will be a performance hit but you cant avoid it.
Vivek
Communifire: Social Networking and Business Collaboration Platform
techsoda
0 Points
2 Posts
Re: Unload Localization Resources
Jan 04, 2008 09:46 PM|LINK
I am currently using the database to store the localization data. The problem however, is that the Resource Provider Model "caches" the Resource Sets. Rick Stahl at West-Wind has a partial answer, but it doesn't really use the Resource Provider Model within ASP.Net.
Thanks for your reply Vivek.
MNF
Member
261 Points
73 Posts
Re: Unload Localization Resources
Jun 26, 2011 12:18 AM|LINK
Have you found any solution? See my question at http://stackoverflow.com/questions/6480963/sliding-expiration-of-localized-asp-net-resources.
My Blog: http://geekswithblogs.net/mnf/