Caching Interfaces
Use
The com.sapportals.portal.prt.component package defines the following interfaces that, if implemented by a component, control the caching of the component's content:
-
ICachablePortalComponent : Determines the caching level and whether the cache has expired.
-
ICacheValidator : Determines whether the cache is still valid based on a string that was stored with the cache.
-
ICacheDiscriminator : Enables the storage of different caches for this component and to label each cache. When called again, the component can specify a label and the cache with that label is returned, if it exists.
Automatic Caching Expiration
Cached content expires automatically in the following cases:
-
A request or a component event is sent to the component.
-
The mode is REFRESH .
-
An exception is raised during the request cycle.