• Resolved aynatural59

    (@aynatural59)


    Hello,

    I have a question:

    When I’m not logged in, the page loading time is quite fast. This is likely because the pages are preloaded and already cached.

    However, when I’m logged in, the loading time is too slow. When I enable the “Serve cached pages to logged-in users” setting, the wrong icon appears in the header.

    The “Anmelden / Registrieren” icon should be hidden, and the “Mein Konto” icon should appear when the user is logged in. However, the “Anmelden / Registrieren” icon remains when the user is logged in, meaning the old cache is being loaded on header. The conditional logic is not working.

    How can I prevent this issue so that I can enable “Serve cached pages to logged-in users” to keep the loading time fast while still ensuring the icon in the header changes correctly?

    Best regards,

    • This topic was modified 6 months, 2 weeks ago by aynatural59.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • To fix that icon issue when caching is on for logged-in users, try adjusting the cache lifespan to something shorter, like 8-10 hours. This way, the cache refreshes more often and helps keep everything up-to-date.

    Also, since you’re using Elementor, it’s a good idea to regenerate the files and data—this tends to solve issues like this pretty well. Just make sure to back up your site before doing that, so you’re covered

Viewing 1 replies (of 1 total)
  • The topic ‘Cache header logged in user’ is closed to new replies.