Advertisement
swte

Tickera cache cookie config

Jan 4th, 2019
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. add_filter('swift_performance_is_cacheable', function($result){
  2.     $tc_cookies = array(
  3.         'tc_cart_seats_',
  4.         'tc_cart_',
  5.         'tc_order_',
  6.         'cart_info_',
  7.         'tc_cart_seats_',
  8.         'tc_discount_code_'
  9.     );
  10.     foreach ($tc_cookies as $tc_cookie){
  11.         if (defined('COOKIEHASH') && isset($_COOKIES[$tc_cookie . COOKIEHASH])){
  12.             return false;
  13.         }
  14.     }
  15.  
  16.     return $result;
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement