/home/techb158/primomovers.ca/wp-content/plugins/wp-rocket/inc/deprecated
Edit: /home/techb158/primomovers.ca/wp-content/plugins/wp-rocket/inc/deprecated/3.9.php (3758B)
pagination_base );
rocket_godaddy_request( 'PURGE', $home_url );
rocket_godaddy_request( 'PURGE', $home_pagination_url );
}
/**
* Perform the call to the Varnish server to purge
*
* @since 3.9.1 deprecated
* @since 2.9.5
* @source WPaaS\Cache
*
* @param string $method can be BAN or PURGE.
* @param string $url URL to purge.
* @return void
*/
function rocket_godaddy_request( $method, $url = null ) {
_deprecated_function( __FUNCTION__ . '()', '3.9.0.4', '\WP_Rocket\ThirdParty\Hostings\Godaddy::godaddy_request' );
if ( ! method_exists( 'WPaas\Plugin', 'vip' ) ) {
return;
}
if ( empty( $url ) ) {
$url = home_url();
}
$host = rocket_extract_url_component( $url, PHP_URL_HOST );
$url = set_url_scheme( str_replace( $host, WPaas\Plugin::vip(), $url ), 'http' );
wp_cache_flush();
// This forces the APC cache to flush across the server.
update_option( 'gd_system_last_cache_flush', time() );
wp_remote_request(
esc_url_raw( $url ),
[
'method' => $method,
'blocking' => false,
'headers' => [
'Host' => $host,
],
]
);
}