Z
Z D
Hello,
I have a question about caching web user controls in ASP.NET.
I have a few user controls that are VERY expensive to create, but they do
not change very often. They only change when a user modifies certain things
in the application. The intervals between changes could be a few hours, or
a few days. It all depends on how often the user makes certain changes.
The important thing is that as soon as the user makes these certain changes,
the data in the control must be re-computed because it is no longer valid.
The question I have is: Is it possible to programatically
invalidate/expire/remove a control from the cache when a user performs a
certain action that I know would involve having to re-create the contents in
the user control?
I haven't been able to figure out a way to manually do this in code.
Some assistance/guidance/suggestions would be greatly appreciated.
Thanks!
ZD
I have a question about caching web user controls in ASP.NET.
I have a few user controls that are VERY expensive to create, but they do
not change very often. They only change when a user modifies certain things
in the application. The intervals between changes could be a few hours, or
a few days. It all depends on how often the user makes certain changes.
The important thing is that as soon as the user makes these certain changes,
the data in the control must be re-computed because it is no longer valid.
The question I have is: Is it possible to programatically
invalidate/expire/remove a control from the cache when a user performs a
certain action that I know would involve having to re-create the contents in
the user control?
I haven't been able to figure out a way to manually do this in code.
Some assistance/guidance/suggestions would be greatly appreciated.
Thanks!
ZD