Forums
Home / Plugin: W3 Total Cache / Dynamic content
(@erikhgm)
13 years, 6 months ago
Is there a way to prevent a section from being cached?
(@likethegoddess)
I’ve used WP Super Cache and entered strings in the field on the Advanced tab to prevent sections from being cached. There may be a similar feature in W3 Total Cache.
(@tgeorge)
If by section, you mean section of a site: then, it’s “Page Cache” tab > “Never cache the following pages”.
If by section, you mean section of a page: then, it’s:
<!--mfunc --> echo rand(); <!--/mfunc -->
Note that it’s “mfunc” not “mclude”. Also, do not use <?php ?> tags inside “mfunc”.