Outdated content appears after deployment due to Dispatcher cache in AEM
Adobe Experience Manager (AEM) non-production or test environments may continue to serve outdated content after a code or content deployment when the Dispatcher cache isn’t invalidated. To resolve the issue, identify the Dispatcher cache root, clear the cached content for the affected paths, and verify that the latest changes appear.
Description description
Environment
- Adobe Experience Manager (AEM), all supported versions
- Non-production or test environments
Issue/Symptoms
- Recent code or content changes aren’t visible on the site after deployment.
- Outdated content is served for specific paths, such as
/etc.clientlibs/or/content/your-site/. - Testers or other individuals may continue to see cached content instead of the latest changes.
Root cause
The Dispatcher cache isn’t cleared after deployment, causing outdated content to be served until the cache is invalidated.
Resolution resolution
Follow the steps below to resolve the issue:
-
Ensure that you have the required permissions to access the Dispatcher servers for the AEM environment. If you don’t have access, contact the system administrator or infrastructure management team.
-
Identify the cache root directory used by the Dispatcher configuration. This is typically defined in
dispatcher.anyordispatcher.yaml. -
Access the Dispatcher server using your organization’s approved method.
-
Go to the Dispatcher cache root directory.
-
Delete the cache directories that correspond to the affected paths. For example:
- Remove the directory for
/etc.clientlibs/. - Remove the directory for
/content/your-site/.
- Remove the directory for
-
Ensure that the Dispatcher process has the required permissions to regenerate the cache when requests are made to these paths.
-
Test the affected URLs and verify that the latest changes are visible.
-
If you don’t have direct access to the Dispatcher server, request assistance from the system administrator or IT support team.