2

Cache from Site settings is already set, but on Renderings level, the cache is enabled. which shows the same content of the component on the page it cached.

For example:

There are 3 promos on the page (About, Services and Contact), and cache is set on promos from /sitecore/layout/Renderings/Feature/Experience Accelerator/Page Content/Promo

The About promo shows fine but services and contact shows the same as the About promo. It also caches the CSS classes as well. Did anyone face the same issue?

Am using Sitecore 8.2 Update 3

3
  • Are there any reasons why the cache is set on the rendering and not on the component? I mean when you set on the rendering you are caching the rendering per say and not the component instance
    – Diego
    Commented Apr 4, 2018 at 20:54
  • to reduce the time, obviously. the website is far too big to apply the cache one by one. and we can not completely set the cache on all the components Commented Apr 7, 2018 at 12:07
  • If it makes sense you can user Sitecore powershell to set for you the cache with a simple script like this sitecorebrasil.wordpress.com/2017/04/28/…
    – Diego
    Commented Apr 9, 2018 at 18:36

1 Answer 1

1

You need to adjust Caching settings a bit to "Vary by Data" also:

enter image description here

Take a look here for further information: https://doc.sitecore.net/sitecore_experience_accelerator/setting_up_and_configuring/setting_up/set_sxa_caching_options

6
  • I tried it, and it works but on certain points it causes the issue. Let me test it again on different devices. thnx Commented Mar 5, 2018 at 16:44
  • What do you mean by certain points? Commented Mar 5, 2018 at 20:03
  • I mean the issue is random. and replicates on some pages and not overall the website Commented Mar 5, 2018 at 20:32
  • Try maybe also 'Vary by query string' and 'Vary by parm'. Try maybe increase cache size in config Commented Mar 5, 2018 at 20:34
  • already set the high size of cache in config. Commented Apr 5, 2018 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.