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

Caching of the segments resolved using Context Hub in AEM 6.2 (or upwards)

Avatar

Avatar
Validate 1
Level 2
hemantbellani-O
Level 2

Likes

11 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
hemantbellani-O
Level 2

Likes

11 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
hemantbellani-O
Level 2

03-10-2017

Dear AEM Community members,

I am attempting to use context hub to resolve a few segments based on query parameters in the URL. The approach is as below:

  1. Create a few segments that produce that will read query parameters in URL and accordingly form a resolution
  2. Created few variations of the teasers that will be shown based on segment resolution.

My Query here is majorly around the caching of content in the above setup: Will the content to be shown based on resolved segments be cached all at once and shown/hidden on basis of segment resolution?

Thanks for your response in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,157 likes

Total Posts

6,247 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,157 likes

Total Posts

6,247 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

03-11-2017

Target is all client-side +  Cloud, it has nothing is done on server-side (AEM). AEM only delivers all the javascript file for Target, and the segment resolution is executed on the target servers. Target does a call like /_jcr_content/component.html these are cached in the dispatcher.

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 2
hemantbellani-O
Level 2

Likes

11 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
hemantbellani-O
Level 2

Likes

11 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
hemantbellani-O
Level 2

03-11-2017

kautuksahni​ - possible to share some pointers on my above query?

Avatar

Avatar
Validate 1
Level 2
hemantbellani-O
Level 2

Likes

11 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
hemantbellani-O
Level 2

Likes

11 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
hemantbellani-O
Level 2

04-10-2017

So if we take away the query parameters from the original question, then does it imply that caching happens only on basis of resolved segments ? Or is it any different for that scenario?​

Thanks,

Hemant

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,157 likes

Total Posts

6,247 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,157 likes

Total Posts

6,247 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

04-10-2017

It would be on the basis of segment resolution every time. When we say query parameter each call is considered as the dynamic call. Caching is valid for static content only.

Extra Relevant article:- Technical Knowledge Sharing Stuff: Query Parameter caching on Dispatcher and Caching pages with query

~kautuk