swift_performance_is_cacheable_get_array
Requests with GET parameters wont’t be cached by Swift Performance by default (except ignored GET params). To test query string Swift Performance will create an array with all GET parameters. This filter will be applied on this array before Swift Performance tests it.
This filter is used in Swift_Performance_Cache::is_cacheable()
Parameters
$get
array, key-value pairs of GET parameters
Return
array
Example
// remove specific parameter before "is cacheable" test
add_filter('swift_performance_is_cacheable_get_array', function($get){
if (isset($get['my-custom-parameter'])){
unset($get['my-custom-parameter']);
}
return $get;
}, 10, 2);