Support » Plugin: LiteSpeed Cache » wpDiscuz is cached, logging in using the socials need refresh to work

  • Resolved ryanjoshuadc

    (@ryanjoshuadc)


    Hi team, thank you for your hard work.

    I’ve been editing the settings of the litespeed ESI and cache to make the wpDiscuz plugin work and I really need help now as I’m worried I’ve been testing this one for hours.

    The scenario is that when I login using the social buttons from any blogs in my website,
    https://snipboard.io/xot4np.jpg

    The page will reload (successful login) but I still need to reload the page again to make the comment section work (showing that the user is logged in).

    So most likely this is a cache or ESI caching issue as disabling litespeed plugin will make it work flawlessly.

    My ESI cache settings:
    https://snipboard.io/hLw9sV.jpg

    My Cache settings:
    https://snipboard.io/0sKpoL.jpg

    Any help is highly appreciated.

    • This topic was modified 8 months, 3 weeks ago by ryanjoshuadc.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Here’s the report number, might also help you help me.
    Report number: YBNNPCEJ

    • This reply was modified 8 months, 3 weeks ago by ryanjoshuadc.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please enable “cache comment” in ESI , and “cache commenter” in cache ?

    Best regards,

    Hi @qtwrk ,

    Thank you for the reply, upon further checking it seems that your plugin is not the main cause of this “need another reload” issue.

    I noticed that this is an issue with the wpDiscuz plugin itself (or wordpress ajax) so I will continue asking it there. But yes, just to give you an idea.

    I tried disabling first all of my plugins. Including this one (to make really sure there is no plugin conflict). Then I investigated how the social login works in wpDiscuz.

    Just to give an example, I used facebook as the main debugging social login and

    https://www.moneyformybeer.com/wp-admin/admin-ajax.php?action=wpd_login_callback&provider=facebook

    This block of code redirects a cached page upon successful login. (Which should not)
    https://snipboard.io/qpst4V.jpg

    The 2nd manual reload will serve uncached page (correct as I’m correctly logged in) so there is really something about this.
    https://snipboard.io/gNSpd5.jpg

    Still thank you for the reply. You can mark this resolve or if you want a status update from my end wait atleast a week so I can fix this together with wpDiscuz.

    • This reply was modified 8 months, 3 weeks ago by ryanjoshuadc.
    • This reply was modified 8 months, 3 weeks ago by ryanjoshuadc.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Thanks for your info.

    I will mark this topic as resolved for the time being.

    But please do not hesitate to contact us again if you have any other issue that related to LSCWP.

    Best regards,

    Hi @qtwrk ,

    Just to give an update for everyone. I fixed the issue by setting the max-age header of my posts to 0 (previous value is 600) and now they are working flawlessly.

    I will mark this now as resolved. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wpDiscuz is cached, logging in using the socials need refresh to work’ is closed to new replies.