Add a PageData object to cache with default cache behavior.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
protected void AddPageToCache(
	PageData page
)

Parameters

page
Type: EPiServer.Core..::.PageData
The page to add to cache

Remarks

This method is typically not needed to call explicitly, the base class implementation will take care of adding the page to cache after the page has been delivered from GetLocalPage.

A language version of a page is stored with a dependency to a "common" cache entry. That is to make it possible to store languages of pages independent of each other but still be able to remove all languages of a page at the same time. Also the page that is the master language is stored both with and without language information in the cachekey meaning if a page is requested without language information the master version is returned.

Override SetCacheSettings to set cache timeouts or add additional dependencies

See Also