Answer: 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
Thanks
Asked In: Many Interviews |
Alert Moderator