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

Smart Crops getting cached on pages

Avatar

Avatar
Validate 1
Level 1
ankushd75501011
Level 1

Likes

2 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
ankushd75501011
Level 1

Likes

2 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile
ankushd75501011
Level 1

15-09-2020

Hi,

 

I uploaded an image to my DAM and used it on a page with the default smart crops that AEM generated for my profile.

Now, I went back to DAM and changed some selection in the smart crop for one of my sizes where in for my small size smart crop I wanted to focus more on the object.

But after saving and re-publishing the image, the page still shows the old smart crop. If I hit the image url directly on the browser, then also it gives me the cached image, but if I append a query parameter to the url, it gives me the changed image.

 

Could someone please help?

 

Regards,

Ankush Dhingra

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct Reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct Reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

16-09-2020

@ankushd75501011 OOTB scene7 CDN will cache assets based on TTL. I remember it as 10 hours of browser cache and 1 hour of server cache.

As of I know you have couple of options,

 

Option1: if you have limited number of assets or limited number of authors, you can use scene7 classic ui now changes to desktop app to invalidate CDN cache..

https://docs.adobe.com/content/help/en/experience-manager-64/assets/dynamic/invalidate-cdn-cached-co...

 

Option2: write a custom replication agent or replication preprocessor or sling job or replication event handler or workflow process step to perform programmatic cache clear.

 

Option3: while generating scene7 url append current timestamp as queryparam by which if we clear aem pagecache if it will fetch latest scene7 files across the page.

 

Hope this helps.

 

Answers (2)

Answers (2)

Avatar

Avatar
Ignite 1
Level 2
OlegMM
Level 2

Likes

6 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Ignite 1
Level 2
OlegMM
Level 2

Likes

6 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
Boost 3
Boost 1
Applaud 5
View profile
OlegMM
Level 2

21-07-2021

Just fixed this with the great support people of Dynamic Media. The issue was that the default invalidation template of <ID> only takes care of the main asset, and doesn't flush the smart crops. The solution was either to add the specific path to the required refocused smart crop in the confirmation dialog ("The following URLs will be invalidated in the CDN"), including the crop name, or to modify the template so that it mentions the main asset plus all possible smart crops:
<ID>

<ID>:crop_1_name

<ID>:crop_2_name

...

<ID>:crop_N_name

 

Edit: adding screenshots. Other instructions are standard, found under the link in the accepted answer.

Screenshot 2021-07-22 at 12.44.29.pngScreenshot 2021-07-22 at 12.47.04.png

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,430 likes

Total Posts

3,305 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,430 likes

Total Posts

3,305 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

16-09-2020

Can you check cache invalidation rule in dispatcher?

Or the Dispatcher Flush agent

https://docs.adobe.com/content/help/en/experience-manager-dispatcher/using/configuring/page-invalida...