Enabling caching

By default, caching of published content is not enabled. Enable it in the Storage Layer configuration file to switch on a default caching implementation that improves performance of your Web site. In a scaled-out scenario, you must enable caching everywhere, and set up remote synchronization of your caches.

Procedure

  1. In each of your Content Delivery Server Roles that uses the cd_storage_conf.xml Storage Layer configuration file, open the file in a plain-text or XML editor.
  2. Find the ObjectCache element and set the Enabled attribute to the value true.
  3. Find the ItemTypes element and set the cached attribute to the value true. If you want, you can configure caching in more detail.
  4. In Param element contained in the subelement Policy, set the Value attribute to the amount of memory you want to use for caching (defaults to 16 MB). You can also use a parameter named Size instead to specify the number of objects, rather than the amount of memory, to cache.
  5. Save and close cd_storage_conf.xml and restart your Web application, Windows service or Java process.

Results

Content Delivery now caches its published content using its default implementation, which means that items are removed based on the "least-recently-used" policy (items that were least recently used are removed first) and using the dependency tracking feature (items are not removed if they depend on other items still in the cache).