W3 Total Cache
[W3TC] exclude comments and comment form from cache (4 posts)

  1. mouffles
    Posted 3 years ago #


    Is there a way to exclude comments from caching ? I need that the website see if an user is logged, then allow it to send comments via the comment form, wich is impossible if posts are cached :(

    I looked after mfunc, but i'm not sure that's the better way to di this.

    I use wp 3.4.1/BPress:1.6.1 /bbPress: 2.1.2 and the w3tc (so everything is up to date)


  2. mouffles
    Posted 3 years ago #

    Hello there,
    After long Google search i found that's it's not a normal behaviour. My comment form in posts and pages are cached, when it should not.

    So i tried not to minify reply.js, mfunc comment_template (result : white page), nohing worked, i use custom community as theme, and it could come from this.

    Please help me :(

  3. Miguel Peixe
    Posted 3 years ago #

    Also getting white page with:

    <!-- mfunc comments_template(); --><!-- /mfunc -->

    anyone got this working?

  4. Miguel Peixe
    Posted 3 years ago #

    mouffles, turned out it works using this code:

    <!-- mfunc comments_template(); --><?php comments_template(); ?><!-- /mfunc -->

    Don't ask me why, this feature really lacks an official documentation...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic