Plugin Directory

Changeset 1814294


Ignore:
Timestamp:
02/02/2018 05:02:36 PM (8 years ago)
Author:
GatorDog
Message:

add woocommerce fix to 2.1.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gator-cache/tags/2.1.6/gator-cache.php

    r1814164 r1814294  
    22/**
    33 * @package Gator Cache
    4  * @version 2.1.6
     4 * @version 2.1.7
    55 */
    66/*
     
    1212Text Domain: gator-cache
    1313Domain Path: /lang
    14 Version: 2.1.6
     14Version: 2.1.7
    1515*/
    1616class WpGatorCache
     
    4949    protected static $multiSiteData;
    5050    const PREFIX = 'gtr_cache';
    51     const VERSION = '2.1.6';
     51    const VERSION = '2.1.7';
    5252    const JP_MOBILE_MOD = 'minileven'; // JetPack mobile module slug
    5353    const SUPPORT_LINK = 'https://wordpress.org/support/plugin/gator-cache';
     
    5757        $options = self::getOptions();
    5858        $request = GatorCache::getRequest();
     59        // work-around for recent version of WooCommerce prevent caching on later hook
     60        if (defined('WOOCOMMERCE_VERSION') && false !== has_filter('wp', 'WC_Cache_Helper::prevent_caching')) {
     61            WC_Cache_Helper::prevent_caching();
     62            remove_filter('wp', 'WC_Cache_Helper::prevent_caching');
     63        }
    5964        global $post;
    6065        if (!$options['enabled']
Note: See TracChangeset for help on using the changeset viewer.