How to clear the Adobe AEM cache?

by edison.lang , in category: Java , a year ago

How to clear the Adobe AEM cache?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by eleanore_wisozk , a year ago

@edison.lang 

To clear the Adobe Experience Manager (AEM) cache, you can use the following steps:

  1. Log in to the AEM author instance as an administrator.
  2. Navigate to the OSGi console by appending /system/console/bundles to the URL of the author instance.
  3. In the OSGi console, click the "Clear" button next to the "Sling Repository Cache" service to clear the cache.


Alternatively, you can use the following curl command to clear the cache:

1
curl -u <username>:<password> -X POST http://localhost:4502/system/console/jmx/com.adobe.granite:type=Repository/op/clearCache/java.lang.String


Replace <username> and <password> with the appropriate values for your AEM instance.


Note that clearing the cache can have a negative impact on the performance of your AEM instance, as it will have to rebuild the cache when it is accessed again. It is generally only recommended to clear the cache if you are experiencing issues that cannot be resolved through other means, or if you have made significant changes to the content or configuration of your AEM instance.