How dispatcher cache flush works for cached content with selector in AEM CS(Cloud Service)? | Community
Skip to main content
Umesh_Thakur
New Participant
December 17, 2024
Solved

How dispatcher cache flush works for cached content with selector in AEM CS(Cloud Service)?

  • December 17, 2024
  • 2 replies
  • 792 views

Hi Team,

Caching content with selector is common practice in AEM sites. Before AEM CS we were useing acs dispatcher flush rules to flush the cache of cached content with selector but in AEM CS it seems to be working by default means there is no need to have any custom mechanism to flush the content with selector in dispatcher. 

Is anyone is having any idea how cache flush works for content with selector in AEM CS dispatcher?

Thanks 

Umesh Thakur

Best answer by daniel-strmecki

Hi @umesh_thakur,

the page publication event triggers a flush that deletes the Dispatcher cache for the specific page, this includes any cached versions with selectors. You can verify this using AEM SDK and local Dispatcher.

 

Hope this helps,

Daniel

2 replies

arunpatidar
New Participant
December 17, 2024

Hi @umesh_thakur 

As @daniel-strmecki  mentioned, When you publish a page or resource, the cache is cleared for all the files matching the resource path.

For example, if you publish /content/myapp/us/en, the cache will be invalidated for all versions of that resource, including:

  • /content/myapp/us/en
  • /content/myapp/us/en.html
  • /content/myapp/us/en.json
  • /content/myapp/us/en.my.json
  • etc.

It works for all the AEM types i.e. AEMaaCS as well as AMS

Arun Patidar
Umesh_Thakur
New Participant
December 17, 2024

Thank you for clarifying in detail @arunpatidar

daniel-strmecki
daniel-strmeckiAccepted solution
New Participant
December 17, 2024

Hi @umesh_thakur,

the page publication event triggers a flush that deletes the Dispatcher cache for the specific page, this includes any cached versions with selectors. You can verify this using AEM SDK and local Dispatcher.

 

Hope this helps,

Daniel

Umesh_Thakur
New Participant
December 17, 2024

Thanks for your response @daniel-strmecki . It helps