Last active
January 30, 2020 09:13
-
-
Save Patrick64/601ac7c10081db0e435d9216c4848108 to your computer and use it in GitHub Desktop.
wpsitesync-clear-w3-cache-after-push.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('spectrom_sync_api_process','clear_cache_after_sitesync_push',10,3); | |
function clear_cache_after_sitesync_push($action, $response, $apicontroller) { | |
if ($action==='push_complete' || $action==='push') { | |
if (function_exists('w3tc_flush_all')) { | |
w3tc_flush_all(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment