Administer > Dynamic caching > Improve marketing performance using caching > Enable JSP caching


Enable JSP snippet caching

You can avoid running the e-Marketing Spot snippet for each page load by enabling JSP snippet caching.


Procedure

  1. Configure all the e-Marketing Spots associated with each page in the campaign caching file eMarketingSpotInvocationList.xml located...

    • workspace_dir\WC\xml\campaigns\cache\

    • WC_EAR\xml\campaigns\cache\

  2. Enable CampaignsCachingComponent by:

    1. Open Configuration Manager.

    2. From the left navigation within Configuration Manager, expand WebSphere Commerce > hostname > Commerce > Instance List > instance name > Components > CampaignsCachingComponent.

    3. From the right window within Configuration Manager, the component name and class names are pre-filled with applicable business auditing information. Select Enable Component to enable CampaignsCachingComponent.

    4. Click Apply. A message displays to indicate that the system has successfully configured this component.

    5. Close Configuration Manager.

  3. Add a servlet cache entry to the cachespec.xml file similar to the example found in the sample cachespec.xml file located...

    • WCDE_INSTALL\samples\dynacache\marketing\

    • WC_INSTALL\samples\dynacache\marketing\

  4. Optional: If you are using a staging server, or are updating data through a utility such as massload, clear the marketing jsp snippet cache entries once the data is pushed to production. This can be done via the Administration Console or a scheduled job.


Related concepts

Invalidate JSP cache


+

Search Tips   |   Advanced Search