Search code examples
wordpresscachingw3-total-cachepage-caching

How to Stop Caching a Section in a cached PHP Page with W3TC


We currently cache our homepage. However, there is a section of the homepage we don't want cached, because it changes anywhere from a 1/2 hour to 3 hours.

Is there a way to write my code in PHP so that this one section doesn't get cached?

Is this even possible?

Thanks!


Solution

  • What I am looking to do is actually called Fragment Caching.

    Here's a link for anyone else who needs this solution in conjunction with the W3TC plugin:

    http://www.contrid.co.za/2015/05/w3-total-cache-fragment-caching/