c# - HttpRuntime.Cache deleted after update in Asp.net mvc -
i'm using httpruntime.cache
repeat task. every cache expire work , create new cache. cache start application_start
. have 1 problem.
when update web application dll
, cache deleted (not expired) , application_start won't work
how can solve problem?
how create non deletable cache?
when modify web.config or contents of /bin
directory, cause worker process reset. so, application shuts down, , starts anew next request.
the asp.net cache not durable through application restarts. if need durable cache, need use external caching service memcache, velocity, ncache, sharedcache, etc.
"application_start won't work" sounds bewildering. if provide more detail problem, can try , that, too.
Comments
Post a Comment