Home


10.4.2 Reduce the number of dependency IDs

The dependency IDs for the cached pages of the shop are being reduced to the minimum values required to uniquely identify the page for invalidation.

For example, for a cached page that refers to a single product, we use that product as a dependency ID. For a cached page that refers only to products of a specific group, we use the group ID as a dependency ID. By using this type of method, we could construct an invalidation scheme based on database updates. This was achieved by using database triggers, but more on that later.

Also, reducing the number of dependency IDs for the cache elements further reduces the memory footprint in the JVM of the cached pages.

+

Search Tips   |   Advanced Search