I've created a custom resource provider which returns strings from our database to use for whatever.
The issue is I haven't found a way to "bust" the cache on these items and reload them from the database. Ideally I'd do this every x minutes or manually when we update the cache and want to reload it.
Technically, that's easy. I'm stori...
Hi,
i'm currently implementing a localized website. I've created a custom ResourceProvider + Factory for storing resources in a database. This all works, i'm storing data as follows:
resourceid | url (null) | type (null) | name | culture (null) | value
1 | NULL | Common | Test ...
I have a custom IResourceProvider implemented for SQL.
I store localized strings like this:
LANGUAGE_LABEL (id, url, type, name, culture_code, value)
I've created a helper which so I can go like:
Html.Resource("Common, Hi") //Global resources ('Common' stored in `type`)
Html.Resource("Hi") //Local resources ('path_of_v...
Hi all,
I've just implemented a SQLResource provider in my MVC2 application. When I change something in the database by hand or by a webform, I want the ResourceProvider to drop all it's resources and fetch them again from the database.
Does any one now how I can clear this ResourceCache that is managed by ASP.NET's own API?
Many than...