W3 Total Cache plugin integration

if you want to flush the specific cache you can do that: the plugin has functions for that

<?php
flush_pgcache();  // Page cache
flush_dbcache();  // Database cache
flush_minify();  // Minify cache
flush_all(); // All caches
?>

and you just need to call it like this:

<?php 
$w3_plugin_totalcache->flush_all();
?>