AEM Dispatcher cache invalidate | Community
Skip to main content
preetivardhanb9
New Participant
May 21, 2019
Solved

AEM Dispatcher cache invalidate

  • May 21, 2019
  • 2 replies
  • 1995 views

Hi,

I am running AEM 6.3, configured dispatcher. In cache section of dispatcher.any file I have enabled TTL (Cache Time to expire to 'True')

  /cache

  {

    /docroot "/var/www/html/aem"

    /statfileslevel "5"

    /gracePeriod "2"

  /enableTTL "1"

    /allowAuthorized "1"

    /rules

Where can I specify the time span of cache to expire (E.g - If I want my cache to be on dispatcher for 7 day after which it should expire)

I have enabled the below lines too where it is set to expire. But where to set the expiry date? or Time span to expire?

"Cache-Control"

"Content-Disposition"

"Content-Type"

"Expires"

"Last-Modified"

"X-Content-Type-Options"

"ETag"

Kindly help me to understand this.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by user05162

You can set the "Component TTL" to mention the expiry time.

  • Component TTL - time to live in seconds, set for rendered component (require Dispatcher 4.1.11+)

You should be able to configure it from "http://<host>:<port>/system/console/configMgr/org.apache.sling.dynamicinclude.Configuration"

Check [1] for more details.

[1] GitHub - Cognifide/Sling-Dynamic-Include: Sling Dynamic Include

Adobe Experience Manager Help | Set up Sling Dynamic Include in AEM

2 replies

preetivardhanb9
New Participant
May 22, 2019

Thank you so much. I'll check it out.

user05162Accepted solution
Employee
May 21, 2019

You can set the "Component TTL" to mention the expiry time.

  • Component TTL - time to live in seconds, set for rendered component (require Dispatcher 4.1.11+)

You should be able to configure it from "http://<host>:<port>/system/console/configMgr/org.apache.sling.dynamicinclude.Configuration"

Check [1] for more details.

[1] GitHub - Cognifide/Sling-Dynamic-Include: Sling Dynamic Include

Adobe Experience Manager Help | Set up Sling Dynamic Include in AEM