Posts

Showing posts from June, 2023

Jenkins Job to clear dispatcher cache of single/multiple page(s)

Sometimes we receive requests to clear the dispatcher cache for a specific page. However, in most cases, we don't have the option to clear the cache for individual pages, so we end up clearing the entire dispatcher cache. This approach leads to heavy traffic on the production publisher instances and increased CPU utilization. To tackle this problem, I developed a dedicated Jenkins job that focuses on clearing the dispatcher cache for single or multiple pages. With this new job, we no longer have to clear the entire dispatcher cache whenever a request for page-specific cache clearing arises. This improvement brings about a significant reduction in traffic on the publishing instances and alleviates CPU utilization, especially when it's unnecessary to clear the entire dispatcher cache. Notes: 1) Enter the path as AEM full publisher/author path ending with .html as the location where the page will be stored in dispatcher 2) Multiple page paths can be entered in new lines 3) All mod