What is the unit of the Duration property in the OutputCache directives of the UserControl in asp.net

 Posted by Poster on 11/9/2009 | Category: ASP.NET Interview questions | Views: 4429

The unit of the OutputCache duration is #ofseconds.

This is specified in number of seconds.

<%@ OutputCache Duration="60" Shared="True" VaryByParam="None" %>

Above code will cache the user control for 60 seconds ie. 1 minute and the same cached user control will be shared across whole website (as Shared property is set to true).

For more details, visit http://msdn.microsoft.com/en-us/library/hdxfb6cy.aspx


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response