Support » Plugin: W3 Total Cache » Problem with is_user_logged_in() when W3 Total Cache is enabled.

  • I’m using subscriber login forms in my sidebar and below posts. The form submits the subscriber’s password to wp-login.php and then redirects back to the page where the user entered his data.

    Upon being redirected php code using is_user_logged_in() should display different content on that page to the now logged in users.

    But when W3 Total Cache is enabled, this is not happening. Actually the user has to manually refresh the page in his browser, so that the content for logged in users is displayed.

    Any ideas?

    Thanks,
    Ralf

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Ralf Skirr

    (@ralf-skirr)

    No idea how to fix this?

    Mh, i rather disable W3 total cache, I don’t want to confuse my users…

    I’m experiencing the exact same problem as Ralf. I’m running WP 3.0 Multi-site with Buddypress. Normally, in the BP sidebar once a user logs in the sidebar uses “is_user_logged_in” to hide the sidebar login form.

    However, when running W3 Total Cache, this doesn’t work. When the user logs in and is redirected back to the home page they still see the login form and assume that their login failed.

    Here’s the weird thing, it’s only occurring in Firefox.

    I tried disabling page caching first and then browser caching, and without the browser and page cache everything works fine. (I’m still using minify and cdn)

    Any suggestions as to how it can be corrected, so that I can use the page and browser caching features again?

    Without knowing your settings it’s difficult to quickly guess which type of caching might affect your site. Bug submission forms from the support tab of the plugin are the fastest way to remedy.

    Thread Starter Ralf Skirr

    (@ralf-skirr)

    Jack, thanks for the tip. Disabling page and browser cache fixed the issue. Unfortunately now we can’t make full use of W3 total cache’s optimization.

    Thread Starter Ralf Skirr

    (@ralf-skirr)

    Mh, since I ran into more problems, for example Javascript not working anymore, I finally deactivated it completely.

    🙁

    Not every file can be minified. Code quality varies amongst the tens of thousands of plugins. Also, not every server can use every type of caching.

    Various options exist to use where possible or essential, not because they are required. For the same reason they are disabled by default. I’m sorry that this is misleading.

    Thread Starter Ralf Skirr

    (@ralf-skirr)

    Frederick,

    thanks for your comment. About the initial question:

    is_user_logged_in is a very standard wordpress feature. It’s not a plugin nor javascript related.

    Shouldn’t that work?

    Yes it should.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problem with is_user_logged_in() when W3 Total Cache is enabled.’ is closed to new replies.