caching tags | Community
Skip to main content
何塞47_X
Level 3
Dec 11, 2017 2:25 AM UTC
Solved

caching tags

Hi guys,

I was wondering if there is a way to cache tags with a dispatcher pointing to an author instance? This is for AEM 6.1

We have a lot of tags and they all get loaded automatically when a user visits:

1) http://localhost:4502/assets.html/content/dam

The tags are loaded as part of the Search panel on that interface. I looked around and while the tags are ultimately an html unordered list, the entire search panel is embedded and rendered as part of that request. Since the request does not have an extension the dispatcher won't cache it, which makes sense since we probably don't want to cache the contents of "/content/dam" or the contents of any other path underneath it.

But we probably would want to cache the search panel, since it's the same across all paths and views.

I noticed that a request to:

2) http://localhost:4502/libs/dam/gui/content/commons/sidepanels/search.html

Will render the actual search panel. Is there a way to have the request in 1) embed the html from 2)? This way then the URL in 2) could be cached in the dispatcher.

Thanks in advance for all ideas, comments, or suggestions

何塞。

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Dec 12, 2017 10:05 PM UTC

Hi,

The dispatcher can only cache complete responses. It cannot cache only a part of the reponse or embed a cached file into the response body of a different request. So technically it is not possible to embed the response body of

http://localhost:4502/libs/dam/gui/content/commons/sidepanels/search.html

into the response body of

http://localhost:4502/assets.html/content/dam

if the system is not built that way (it isn't). Can you check if the performance issue exists on 6.3 as well and raise a ticket for this?

Jörg

7 replies

何塞47_X
Level 3
Dec 13, 2017 3:41 AM UTC

Hi Jörg,

It seems AEM 6.3 uses lazy loading in its "Filters" section, so it won't have this issue. It will have performance issues however if you were to open the dialog with all the tags in it, as the "Filters" section, just like the Search panel, is part of the whole request that can't be cached.

Anyways, I'll open an improvement request ticket on my side.

Thanks a bunch!

何塞。

Translate
joerghoh
joerghohAccepted solution
Employee
Dec 12, 2017 10:05 PM UTC

Hi,

The dispatcher can only cache complete responses. It cannot cache only a part of the reponse or embed a cached file into the response body of a different request. So technically it is not possible to embed the response body of

http://localhost:4502/libs/dam/gui/content/commons/sidepanels/search.html

into the response body of

http://localhost:4502/assets.html/content/dam

if the system is not built that way (it isn't). Can you check if the performance issue exists on 6.3 as well and raise a ticket for this?

Jörg

Translate
smacdonald2008
Level 10
Dec 12, 2017 12:55 PM UTC
New Participant
Dec 12, 2017 9:32 AM UTC

Hi Scott,

Thanks for your reply. The link you sent is actually for something related to Dynamic Media. Can you please send me the link to the Dispatcher discussion?

Thanks a bunch,

何塞。

Translate
kautuk_sahni
Employee
Dec 12, 2017 8:33 AM UTC

Jörg Hoh​ need your help here!!

Translate
Kautuk Sahni
smacdonald2008
Level 10
Dec 11, 2017 9:32 PM UTC

While I am waiting to hear back - i recommend that you watch this great webinar on Dispatcher from last July:

Scott's Digital Community: Ask the AEM Community Experts for July 2017

You may find it useful on this subject.

Translate
smacdonald2008
Level 10
Dec 11, 2017 3:16 PM UTC

THis is being discussed with internal ppl. I will post back the answer.

Translate