W3 Total Cache
How to avoid part of the code to be cached? (5 posts)

  1. Comparativa de Bancos
    Posted 4 years ago #


    I am having many problems using GD Star Rating and it seems there is not easy solution for this.

    Is there a way I can tag part of my code to dont be cached at all with W3 total cache???

    Some kind of
    <!-- no cache -->
    here the code for gd star rating
    <!-- no cache off -->

    Thanks a lot


  2. snurk
    Posted 4 years ago #

    That would indeed be an awesome function, I have troubles as well with plugins that don't recognize the caching W3 cache plugin. Guessing this might be hard to accomplish though.. hoping for answers... :)

  3. pkiula
    Posted 4 years ago #

    I think you don't need this if you disable the page cache (overall cache) and just enable the DB cache + object cache. Having used HyperCache that had such a feature, I realized it was not very effective from a maintenance perspective over time. Just write your code as you would write it, don't tailor it for a caching plugin! W3TC is already fairly savvy for advanced websites with its DB + Object cache.

  4. pkiula
    Posted 4 years ago #

    Just to add, if you really want something not to be cached, then include it in your page as a JavaScript include. THis was your entire page can be cached and almost-static, but only the "gd star rating" bit will come from a javascript and therefore be 'live'.

  5. Frederick Townes
    Plugin Author

    Posted 4 years ago #

    That's called fragment caching, but currently it doesn't support WP hooks and will in a upcoming release. Details are in the plugins FAQ.

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