Specify Query Parameters to Ignore during SiteGround Speed Optimizer Cache-Creation and Cache-Spawn

add_filter( ‘sgo_ignored_query_params’, ‘add_sgo_ignored_query_params’); function add_sgo_ignored_query_params( $ignored_query_params ) { // List query parameters to ignore in addition to SiteGround Speed Optimizer default ignore-list. // WooCommerce Order-Received Redirection Order Attribution $ignored_query_params[] = ‘utm_nooverride’; // Third-Party or Plugin-Specific Parameters // MailChimp $ignored_query_params[] =…Continue reading

Specify Query Parameters that Skip SiteGround Speed Optimizer Cache

add_filter( ‘sgo_bypass_query_params’, ‘add_sgo_bypass_query_params’); function add_sgo_bypass_query_params( $bypass_query_params ) { // Add custom query params, that will skip the cache. // Custom Parameters $bypass_query_params[] = ‘condis’; // Can be used to force non-cache for pages with dynamic content $bypass_query_params[] = ‘fname’; //…Continue reading

Automatic CSS/JavaScript Cache Busting

/** * Replace the `ver` query arg with the file’s last modified timestamp * * @param string $src URL to a file * @return string Modified URL to a file */ function filter_cache_busting_file_src( $src = ” ) { global $wp_scripts;…Continue reading

Automatic CSS/JavaScript Cache Busting

/** * Replace the `ver` query arg with the file’s last modified timestamp * * @param string $src URL to a file * @return string Modified URL to a file */ function filter_cache_busting_file_src( $src = ” ) { global $wp_scripts;…Continue reading