Develop Dynamic caching
This page provides a starting point for finding information about the dynamic cache service, which improves performance by caching the output of servlets, commands, web services, and JSP (JSP) files.
Dynamic caching features include replication of cache entries, cache disk offload, Edge-Side Include caching, web services, and external caching. Use external caching to control caches outside of the application server.
Subtopics
- Configure cacheable objects with the cachespec.xml file
Use this task to define cacheable objects inside the cachespec.xml, found inside the web module WEB-INF or enterprise bean META-INF directory.
- cachespec.xml file
The cache parses the cachespec.xml file when the server starts, and extracts a set of configuration parameters from each cache-entry element. Every time a new servlet or other cacheable object initializes, the cache attempts to match each of the cache-entry elements to find the configuration information for that object.
- Example: Configure the dynamic cache service
This example puts all of the steps together for configuring the dynamic cache service with the cachespec.xml file, showing the use of the cache ID generation rules, dependency IDs, and invalidation rules.
- cacheinstances.properties file
Use the information in this document as a reference of the names, values, and explanations that we can use in the cacheinstances.properties file.
Related information:
End-to-end paths for Dynamic caching
Troubleshooting Dynamic caching