.net - c# cache not persisting between users -
i'm experiencing problems use of system.web.caching.cache
.
basically i'm using
cache.insert(tablename, newlist, null, system.web.caching.cache.noabsoluteexpiration, system.web.caching.cache.noslidingexpiration);
to insert objects cache, , cache[tablename]
retrieve them on webform.
what i'm experiencing if refresh browser calls these methods, data there, , cache.count reflects this. however, if close browser , start again, or start different browser on test machine or another, cached data not there.
ie cache working if using session store. i've tried using application store too, same results.
i've had through application pool settings , web.config, , can't see obvious.
any appreciated, requerying databases information put in cache slow down webform great deal.
i'm not sure i'm being clear enough.
reproduce.
browser 1 opens webpage, no cached data
browser 1 refreshes webpage, cached data
browser 2 opens webpage, no cached data
browser 2 refreshes webpage, cached data
browser 1 refreshes webpage, cached data
so can see, it's working if session data, not common cache. using callback wouldn't tell me anything, data still there, not available fresh session
sounds restart application pressing f5 in visual studio.
just open new browser window without restarting application.
Comments
Post a Comment