B2C Commerce uses two caches for different kinds of content, each of which can be configured and invalidated separately.
<iscache>
is enabled.Using page caching can improve your site's overall performance and can minimize customer wait times. The web server caches content to improve response times. Requested pages are stored in the cache and can be presented immediately upon request. You can use caching on portions of pages, which enables you to manage the customer experience while satisfying business requirements related to data changes like pricing and promotions.
B2C Commerce supports the cross-site sharing of static files. You can configure Time-To-Live (TTL) for this globally cached static content.
Adding ISML Tags to Templates
For a page on your storefront to be cached, you
must add the ISML tag <iscache>
to the appropriate
template. The tag can be located anywhere in the template. If the
<iscache>
tag occurs several times in a template,
the <iscache>
tag with the lowest cache settings
(either minimal cache duration or status=”off”), including all local
template includes, determines the caching behavior of the resulting
page.
When including other templates in a template, make sure that the
included template doesn't contain an <iscache>
tag that is in conflict
with your original settings.
Examples
<iscache type = "relative" hour = "24">
<iscache>
tag is ignored when
it's encountered in a template.<isinclude url="">
syntax