w3 total cache clear cache when programming code example Example: w3 total cache clear cache programmatically <?php $w3_plugin_totalcache->flush_all(); ?>