Advertisement
swte

Exclude specific domain from caching

Jan 1st, 2019
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. add_filter('swift_performance_is_cacheable', function($result){
  2.     if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == 'domain.com'){
  3.         return false;
  4.     }
  5.     return $result;
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement