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

  • 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
    Apr 4 '18 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 Apr 7 '18 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
    Apr 9 '18 at 18:36

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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