View Caching
Argument
Type
Required
Default
Description
component name="general"{
function index(event,rc,prc){
// call some model for data and put into the request collection
// this data will not be cached, the service will still be called for each request
prc.myQuery = getInstance('MyService').getData();
// view with caching parameters
// even if data changes in prc.myQuery, the cached view will be returned
event.setView(
view="general/index",
cache=true,
cacheTimeout=60,
cacheLastAccessTimeout=15,
cacheSuffix=getfwLocale()
);
}
}Purging Views
Disable View Caching
Last updated
Was this helpful?