Next >
Tutorial: Invalidating cache
This tutorial introduces different methods to perform cache invalidation. Upon completing this tutorial, you will list several different methods for invalidating the cache entries, and understand how to implement each of them.
Learning objectives
Having data correctly added to the cache is only the beginning of the story. Of equal, or greater, importance is how to invalidate and remove cached data from the cache. Dynacache provides different methods for performing cache invalidation. This tutorial covers several of them.
Time required
Expect this tutorial to take about 30 minutes to complete.
Audience
This tutorial is intended for WebSphere Commerce Administrators who will be responsible for invalidating the cache.
Prerequisites
To complete this tutorial, you need WAS v6 and WebSphere Commerce Version 6.0 with the ConsumerDirect store published. You will also need the Tutorial: Setting up the dynamic cache environment completed.
Expected results
In this tutorial, you learned to invalidate cache entries using the different techniques dynacache provides:
- Timeout
- Command invalidation
- CacheIVL table
- Dynacache API
- Dependency trees
Lessons in this tutorial
- Timeout
This section is related to Timeout.- Invalidating cache using command invalidation
Command-based invalidation means invalidation rules are executed upon execution of a command that extends from the WebSphere Commerce Command Framework API. Invalidation IDs for command-based invalidation are constructed based on methods and fields provided by the commands.- Invalidating cache using dynacache API and the CACHEIVL table
This section is related to invalidating cache using dynacache API and the CACHEIVL table.- Invalidating cache using dependency trees
It is useful to create conceptual groupings of your cache-entries, and invalidate based on those groups. For example, consider the ConsumerDirect store - how can you invalidate all of the entries for a particular category or subcategory?