0

In our solution we're using custom personalization rule to show/hide components based on some criteria. This rule works fine but only for the first time the user visits the page after it's published or Sitecore's cache is cleared.
Reloading the page, clearing browser cache, loging in as a difference user does not help - page is always rendered in a state that was encountered for the first time and the code for this rule isn't even executed.

We've tried different ideas like:

  • turning off caching everywhere we could find it (component's level, rendering, placeholders, settings for Site grouping item)
  • adding this personalization rule to components on partial design, page design and on a page itself
  • using built in Sitecore's personalization rules -> same weird behavior

1 interesting thing we've noticed - it seems to be working in Preview mode from Experience Editor. Rules are applied with every page reload.

We're using Sitecore 9.1.1 (rev 002459)

3
  • Is your custom rule getting hit after first visit? Have you tried setting a breakpoint there?
    – josedbaez
    Jan 13 '20 at 10:48
  • No, it's getting hit only on the first visit.
    – konw
    Jan 13 '20 at 12:01
  • Did you find a solution for this? I'm having the exact same issue. Jul 16 at 11:46

Your Answer

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

Browse other questions tagged or ask your own question.