W3TC manual cache flush does not work

The working solution is:

<?php
/*
 * Flushing the W3TC Plugin's Cache entirely
 * @package WordPress
 */
ignore_user_abort( true );
include('/home/clients/<client-directory>/<website-directory>' . '/wp-load.php');
w3tc_flush_all();

tech