Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Plugin Name: Swift Performance Tweaks
- */
- add_filter('swift_performance_default_warmup_priority', function($priority, $key, $url){
- if (preg_match('~product-(tag|category)~', $url)){
- $priority += 3000;
- }
- return $priority;
- }, 10, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement