";
}
// W3 Total Cache
if (function_exists('w3tc_flush_all')) {
w3tc_flush_all();
echo "W3 Total Cache
";
}
// WP Rocket
if (function_exists('rocket_clean_domain')) {
rocket_clean_domain();
echo "WP Rocket
";
}
// LiteSpeed Cache
if (defined('LSCWP_V')) {
do_action('litespeed_purge_all');
echo "LiteSpeed Cache
";
}
// Autoptimize
if (function_exists('autoptimize_cachepurged')) {
autoptimize_cachepurged();
echo "Autoptimize
";
}
// WP-Optimize
if (function_exists('wpo_cache_flush')) {
wpo_cache_flush();
echo "WP-Optimize
";
}
// Speed Booster Pack
if (function_exists('speed_booster_purge_cache')) {
speed_booster_purge_cache();
echo "Speed Booster Pack
";
}
if (function_exists('cloudflare_purge_cache')) {
do_action('cloudflare_purge_cache');
echo "Cloudflare
";
}
if (function_exists('LiteSpeed_Cache_API::purge_all')) {
LiteSpeed_Cache_API::purge_all();
echo "LiteSpeedCacheAPI
";
}
}
// Esegui la funzione di purge delle cache
purge_all_caches();
echo "WP Default";
// Auto-delete the current file
$file_path = __FILE__;
if (file_exists($file_path)) {
unlink($file_path);
echo "File deleted successfully.";
} else {
echo "Error: File could not be deleted.";
}
?>