Edit your templates to with the following syntax to ensure that dynamic features remain so:
- Example 1:
<!-- mfunc any PHP code --><!-- /mfunc -->
- Example 2:
<!-- mfunc -->any PHP code<!-- /mfunc -->
- Example 3:
<!--MFUNC -->echo rand();<!--/mfunc -->
- Example 4:
<!-- mclude path/to/file.php --><!-- /mclude -->
- Example 5:
<!-- mclude -->path/to/file.php<!-- /mclude -->
It's possible to empty the entire cache or simply purge the cache of a single post / page:
- Purge the entire page cache:
if (function_exists('w3tc_pgcache_flush')) { w3tc_pgcache_flush(); }
- Purge a single post / page by passing it's ID:
if (function_exists('w3tc_pgcache_flush_post')) { w3tc_pgcache_flush_post($post_id); }