• Resolved zohrabt

    (@zohrabt)


    “Don’t cache pages for logged in users” is on and always has been but after a user logs in and clicks home, on the right top corner it still does not recognize the user as logged in and says “log in”

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zohrabt

    I am sorry about the issue you are experiencing and I am happy to assist you with this?
    Are the options Set Expires header and Cache-control header enabled in Performance>Browser Cache>HTML&XML?
    If so try to disable those and see if the issue persists.
    If the issue is still there you may want to try the Page Fragment Cache solution for this.
    As explained in the link provided, you can wrap the PHP code with mfunc and make sure that that part of the code is not being cached.
    I hope this helps!
    Thanks!

    Thread Starter zohrabt

    (@zohrabt)

    The options Set Expires header and Cache-control header in Performance>Browser Cache>HTML&XML are disabled.

    It also feels like the website got slower after I tested those settings.

    The problem exists only on the “Home Page.”
    It works correctly on the other pages and only after navigating to Home, it still does not show the user’s logged in info.

    I am not sure how to do the mfunc. Which code should I be wrapping?
    Also, since the problem is only on the home page, will the mfunc work?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zohrabt

    Thank you for the information.
    I’ve tried to test this on your website and I am not experiencing the issue.
    Can you please share if the option “Cache front page” in Performance>Page Cache is enabled and if so please disable it save all settings and purge the cache and see if the issue persits.
    Thanks!

    Thread Starter zohrabt

    (@zohrabt)

    “Don’t cache front page” is selected but the problem still persists.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zohrabt

    Thank you for the information.
    Can you please share the Performance>Browser Cache settings?
    Thanks!

    Thread Starter zohrabt

    (@zohrabt)

    “Set Last-Modified header” – Enabled
    “Set expires header” – Disabled
    “Set cache control header” – Disabled

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zohrabt

    Thank you for the information.
    Can you please check the Performance>Browser Cache>HTML&XML section and disable the mentioned settings if enabled:
    Set Last-Modified header
    Set expires header
    Set cache control header
    Make sure to save all settings and purge the cache after you make the changes.
    Thanks!

    Thread Starter zohrabt

    (@zohrabt)

    I did but the problem still persists on the Home page.
    Could there be anything else causing it?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zohrabt

    You should try disabling the Browser cache and see if the issue persists. If the issue is still there, then you can try either to add the constant define(‘DONOTCACHEPAGE’, true); to the template for the home page, or the Page Fragment cache solution as I recommended in the first post. Also, the example in our FAQ is exactly what you need.
    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Once a user logs in, it shows them as logged out on the homepage’ is closed to new replies.