Tutorials > Dynamic caching > Configure edge side caching using ESI

< Previous | Next >


Cache full pages using ESI caching

To cache an entry using ESI, use the property EdgeCacheable. Be aware that this property implies the property of consume-subfragments.

To cache pages with ESI, define the Cache ID using parameter and cookie type components. You cannot use request attributes in the cache-id's definition because they are not available at the network's edge.


Procedure

  1. Cache the TopCategoriesDisplay page at the edge of the network.

    1. Open the cachespec.xml file located at WC_EAR\Stores.war\WEB-INF.

    2. Verify there are no components in the cache-id for TopCategoriesDisplay that reference request attributes.

    3. Add the following property to the <cache-entry> for the TopCategoriesDisplay page:

      <property name="EdgeCacheable">true</property>
      

    4. As noted above, the page fragment must also be edge cacheable. Add the EdgeCacheable property to the cache-entry for the eMarketingSpot.

  2. Verify that the page gets cached at the edge.

    1. Open the cache monitor and clear the cache entries.

    2. Hit the TopCategoriesDisplay page.

    3. Open the cache monitor.

    4. Click Edge Statistics on the left hand side.

    5. Click the Contents button. You see an entry in the cache for the TopCategoriesDisplay page.

< Previous | Next >


+

Search Tips   |   Advanced Search