XF caching issue | Community
Skip to main content
New Participant
September 14, 2024
Solved

XF caching issue

  • September 14, 2024
  • 1 reply
  • 996 views

Hi All,

 

I’m encountering an issue with XF publishing. Currently, when XF is published, all the reference pages clear the cache through an event handler. This is based on some older code.

 

I want to use SDI for XF caching, but my project already uses SDI with about some dynamic components mapped to it, all of which are set to "no cache."

 

From what I understand, in order to use SDI with XF, the filter setting should not be "no cache." Adjusting this setting affects the functionality of the other components.

 

How can we handle this situation? Specifically, how can we integrate XF into the existing SDI setup without disrupting the components that currently use the "no cache" filter?

 

Thanks

 

 

Best answer by Mahedi_Sabuj

Hi @knan, Can you share OSGi configs and dispatcher filter rules?

1 reply

Mahedi_Sabuj
New Participant
September 14, 2024

Hi @knan, You can use two separate SDI OSGi configurations with different selectors. Ensure that caching is not disabled for the XF-based SDI configuration selectors.

https://ms-29.com/aem/dispatcher/cache-aem-pages-with-dynamic-content

https://ms-29.com/aem/experience-fragment/caching-experience-fragments

Mahedi Sabuj
KNanAuthor
New Participant
September 14, 2024

Thanks Mahedi ..Ill check and update .

 

Thanks
KNan