Plugin Directory

Changeset 2552371


Ignore:
Timestamp:
06/22/2021 10:04:06 PM (5 years ago)
Author:
speedien
Message:

v1.0.6

Location:
speedien
Files:
2 edited
9 copied

Legend:

Unmodified
Added
Removed
  • speedien/tags/1.0.6/advanced-cache.php

    r2552370 r2552371  
    1414
    1515if (!empty($_COOKIE)) {
    16   if(!empty($_COOKIE['wordpress_no_cache']))
     16  if(!empty($_COOKIE['wordpress_logged_in_1']))
    1717  {
    18       if($_COOKIE['wordpress_no_cache'] !== 'preview')
     18      if($_COOKIE['wordpress_logged_in_1'] !== 'preview')
    1919      {
    2020          $bypass_cache = 1;
    2121      }
    2222  }
    23   $cookies_regex = '/(wordpress_[a-f0-9]+|comment_author|wp-postpass|wordpress_logged_in|woocommerce_cart_hash|woocommerce_items_in_cart|woocommerce_recently_viewed|edd_items_in_cart)/';
     23  $cookies_regex = '/(wordpress_[a-f0-9]+|comment_author|wp-postpass|wordpress_no_cache|woocommerce_cart_hash|woocommerce_items_in_cart|woocommerce_recently_viewed|edd_items_in_cart)/';
    2424  $cookies = htmlentities(implode('', array_keys($_COOKIE)));
    2525  if (preg_match($cookies_regex, $cookies)) {
  • speedien/tags/1.0.6/speedien_cache.php

    r2552370 r2552371  
    3333    if(!empty($_COOKIE))
    3434    {
    35         if(!empty($_COOKIE['wordpress_no_cache']))
    36         {
    37             if($_COOKIE['wordpress_no_cache'] !== 'speedien')
     35        if(!empty($_COOKIE['wordpress_logged_in_1']))
     36        {
     37            if($_COOKIE['wordpress_logged_in_1'] !== 'speedien')
    3838            {
    3939                $bypass_cache = 1;
    4040            }
    4141        }
    42         $cookielist = '/(wordpress_[a-f0-9]+|comment_author|wp-postpass|wordpress_logged_in|woocommerce_cart_hash|woocommerce_items_in_cart|woocommerce_recently_viewed|edd_items_in_cart)/';
     42        $cookielist = '/(wordpress_[a-f0-9]+|comment_author|wp-postpass|wordpress_no_cache|woocommerce_cart_hash|woocommerce_items_in_cart|woocommerce_recently_viewed|edd_items_in_cart)/';
    4343        $cookies = sanitize_text_field(implode('', array_keys($_COOKIE)));
    4444        if (preg_match($cookielist, $cookies)) {
  • speedien/trunk/advanced-cache.php

    r2547636 r2552371  
    1414
    1515if (!empty($_COOKIE)) {
    16   if(!empty($_COOKIE['wordpress_no_cache']))
     16  if(!empty($_COOKIE['wordpress_logged_in_1']))
    1717  {
    18       if($_COOKIE['wordpress_no_cache'] !== 'preview')
     18      if($_COOKIE['wordpress_logged_in_1'] !== 'preview')
    1919      {
    2020          $bypass_cache = 1;
    2121      }
    2222  }
    23   $cookies_regex = '/(wordpress_[a-f0-9]+|comment_author|wp-postpass|wordpress_logged_in|woocommerce_cart_hash|woocommerce_items_in_cart|woocommerce_recently_viewed|edd_items_in_cart)/';
     23  $cookies_regex = '/(wordpress_[a-f0-9]+|comment_author|wp-postpass|wordpress_no_cache|woocommerce_cart_hash|woocommerce_items_in_cart|woocommerce_recently_viewed|edd_items_in_cart)/';
    2424  $cookies = htmlentities(implode('', array_keys($_COOKIE)));
    2525  if (preg_match($cookies_regex, $cookies)) {
  • speedien/trunk/speedien_cache.php

    r2552322 r2552371  
    3333    if(!empty($_COOKIE))
    3434    {
    35         if(!empty($_COOKIE['wordpress_no_cache']))
    36         {
    37             if($_COOKIE['wordpress_no_cache'] !== 'speedien')
     35        if(!empty($_COOKIE['wordpress_logged_in_1']))
     36        {
     37            if($_COOKIE['wordpress_logged_in_1'] !== 'speedien')
    3838            {
    3939                $bypass_cache = 1;
    4040            }
    4141        }
    42         $cookielist = '/(wordpress_[a-f0-9]+|comment_author|wp-postpass|wordpress_logged_in|woocommerce_cart_hash|woocommerce_items_in_cart|woocommerce_recently_viewed|edd_items_in_cart)/';
     42        $cookielist = '/(wordpress_[a-f0-9]+|comment_author|wp-postpass|wordpress_no_cache|woocommerce_cart_hash|woocommerce_items_in_cart|woocommerce_recently_viewed|edd_items_in_cart)/';
    4343        $cookies = sanitize_text_field(implode('', array_keys($_COOKIE)));
    4444        if (preg_match($cookielist, $cookies)) {
Note: See TracChangeset for help on using the changeset viewer.