rocket_clean_files()
Use the rocket_clean_files()
function when you want to purge some specific pages of the cache.
You can use a string, or an array with the URL(s) to purge.
// clean http://your-site.com/contact/ rocket_clean_files( 'http://your-site.com/contact/' ); // clean http://your-site.com/contact and http://your-site.com/legal/ $clear_urls = array( 'http://your-site.com/contact/', 'http://your-site.com/legal/' ); rocket_clean_files( $clear_urls );