Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@OutputCache Directive Question

Status
Not open for further replies.

JohnnyBGoode

Programmer
May 1, 2002
76
CA
The @OutputCache directive is a very useful thing and fragment caching is even more so, but I have one question.

You can set the duration to a specific length of time (in seconds). Is it possible to somehow set the duration to a specific time (EST)? I would like to use the cached version of a page until 6pm. After 6pm, I would like to regenerate the page upon request and store the new version in the cache. Is this possible?
 
I believe you can set the output cache through code. Maybe in your code provide a way to check the time difference and set your number of seconds accordingly.

regards,
Brian
The problem with doing something right the first time is that nobody appreciates how difficult it was.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top