Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM Dispatcher cache invalidate

Avatar

Avatar
Validate 1
Level 1
preetivardhanb9
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
preetivardhanb9
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
preetivardhanb9
Level 1

21-05-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

21-05-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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
preetivardhanb9
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
preetivardhanb9
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
preetivardhanb9
Level 1

22-05-2019

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