ePages 6.11.0 - DE_EPAGES/Product/API/TLE/IncludeTemplateHandler.pm

Package DE_EPAGES::Product::API::TLE::IncludeTemplateHandler

Provides TLE functions and variables for partial page caching. The TLE block CachedInclude can be used to cache a part of a page that would normally not be cached. This is useful for content areas that are mostly static but take a long time to compute. If the content is not completely static, you must specify a cache file name that includes the parameter on which the content depends. For example, if the content depends on the language and the currency, the file name should include the current currency is and language id. There are some pre-defined file name parts for most common scenarios, such as #CacheIncludesPrices for page parts that contain locale and currency dependend content. See function tle for details.

Example
#BLOCK("CachedInclude", #Object, "MyPageType.MyInclude" .  #INPUT.Language . #INPUT.Currency)
    #NameOrAlias: #Price[money]
#ENDBLOCK
#BLOCK("CachedInclude", #Object, "MyPageType.MyInclude" .  #CacheIncludesPrices)
    #NameOrAlias: #Price[money]
#ENDBLOCK

Functions

tle

tle

Extension to the Caching of page parts in the Presentation Cartridge's API::TLE::IncludeTemplateHandler.

Syntax
#BLOCK("CachedInclude", #Object, #Prefix . #CacheIncludesPrices)
Example
#BLOCK("CachedInclude", #Object, "Name" . #CacheIncludesPrices)
  #NameOrAlias
#ENDBLOCK