AEM Cache Invalidation using Sling Content Distribution
by @Imran__Khan Overview
Sling Content Distribution
This blog will help us to clear servlet cache on publish of page or resource. We are going to use sling content distribution API to clear cache.
It is not a best practice to use custom code for invalidate cache explicitly. There are two custom ways we can clear cache using below API’s:
- Sling Content Distribution API (preferred)
- Replication API to invoke the publish Dispatcher flush replication agent.
Sling content distribution module facilitates the distribution of Sling resources among various Sling instances. Operating at the path level, the API utilizes distribution agents to enable the transfer of specific paths between instances.
Sling content Distribution supports ADD, DELETE and INVALIDATE actions. Within the framework of Sling Content Distribution, cache invalidation is possible upon content publishing, removal, and even without triggering a publication event.
Q&A
Please use this thread to ask questions relating to this article
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.