Administer > Manage WebSphere Commerce features > Management Center > Installment rules
Dynamic caching considerations with installment rules
The Brazil starter store is the only store that includes the installment rules feature by default in the store JSP files; currently, installment rules are only enabled in the Brazil starter store. The starter store's catalog browsing pages, such as the Home, Category, and Product Details pages, display a featured installment option which is cached in the store's cachespec.xml file.
The following code sample shows how the featured installment option is cached in the cachespec.xml file for the Brazil starter store:
<!-- caching the featured installment price --> <cache-entry> <class>servlet</class> <name>/Brazil/Snippets/Catalog/CatalogEntryDisplay/CatalogEntryFeaturedInstallmentOptionDisplayPrice.jsp</name> <property name="do-not-consume">true</property> <cache-id> <component id="storeId" type="parameter"> <required>true</required> </component> <component id="langId" type="parameter"> <required>true</required> </component> <component id="catalogId" type="parameter"> <required>true</required> </component> <component id="catalogEntryId" type="parameter"> <required>true</required> </component> </cache-id> <dependency-id>StoreInstallment:catalogEntryId <component id="catalogEntryId" type="parameter"> <required>true</required> </component> </dependency-id> <dependency-id>StoreInstallment </dependency-id> </cache-entry>In this code sample, the following dependency IDs are defined to specify when the featured installment option cache entry is invalidated:
- StoreInstallment
- When installment rules are added or changed, all entries in the StoreInstallment cache are invalidated. For example, when a new installment rule is created or an existing rule is activated, deactivated, updated, or deleted using the Management Center Installments tool.
- StoreInstallment:catalogEntryId
- When the catalog price of an item is changed, all entries in the StoreInstallment:catalogEntryId cache are invalidated.
The default cachespec.xml file for the store contains basic caching examples for the catalog browsing pages and static pages. You can modify this file to manually add invalidation rules for featured installment options. For more information about adding invalidation rules to the cachespec.xml file, see Add sample invalidation policies to the store's cachespec.xml file.
You can view the cachespec.xml file that contains the invalidation policies for featured installments in the following directory:
- WC_INSTALL/samples/dynacache/invalidation/installment
- WC_INSTALL/samples/dynacache/invalidation/installment
Related concepts
Related tasks
Dynamic caching in the Brazil starter store