Caching Image Renditions in Dispatcher | Community
Skip to main content
Level 2
May 22, 2020
Solved

Caching Image Renditions in Dispatcher

  • May 22, 2020
  • 3 replies
  • 5105 views

Hi,

 

i am facing a problem like not able to cache image renditions. Added a dispatcher for the author for performance improvement.

In Dispatcher cache i have given statlevel as 4

and the cache rule i have given to cache all the files under a project for example "react_aem_spa".

and also under invalidate rule

 

When i am trying to access http://localhost/content/dam/react_aem_spa/hiking_4.jpg the image is getting cached but when i am trying to access the rendition say http://localhost/content/dam/react_aem_spa/hiking_4.jpg/jcr:content/renditions/cq5dam.thumbnail.140.100.png  they are not getting cached.

 

Are there any configurations specifically to do so as to cache the renditions as well.

And also when i am trying to edit the tags in damadmin console for the image they are not being autoinvalidated. 

Can anyone let me know what has to be done.

 

Regards,

Sree

 

 

 

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

3 replies

Himanshu_Singhal
Community Advisor
Community Advisor
May 22, 2020

Hi @sreekalyani 
You can try the following approach for Image rendition caching.
http://aempodcast.com/2017/assets/asset-rendition-caching-problem-solution/#.XsevrhMzbxU

 

Thanks,
Himanshu Singhal

Theo_Pendle
Level 8
May 22, 2020

Hi @sreekalyani,

I'm no Dispatcher expert but I think the issue is with your glob expression.

If we take the two paths you provided:

/content/dam/react_aem_spa/hiking_4.jpg /content/dam/react_aem_spa/hiking_4.jpg/jcr:content/renditions/cq5dam.thumbnail.140.100.png

The following glob only matches the first asset:

/content/dam/react_aem_spa/*.*

Instead I think you should be using this glob which matches both assets:

/content/dam/react_aem_spa/**

I'm a regex man and I've always disliked globs, which is why I use https://globster.xyz/ to double-check my globs 😉 Have a look!

Matches one:

Matches all:

sunjot16
Adobe Employee
sunjot16Adobe EmployeeAccepted solution
Adobe Employee
May 22, 2020