Plugin Directory

Changeset 2269546

Timestamp:
03/28/2020 12:14:57 AM (4 years ago)
Author:
westi
Message:

batcache: Update for 1.5 release

Location:
batcache/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • batcache/trunk/advanced-cache.php

    r1538715 r2269546  
    7070
    7171    var $noskip_cookies = array( 'wordpress_test_cookie' ); // Names of cookies - if they exist and the cache would normally be bypassed, don't bypass it
    72 
     72    var $cacheable_origin_hostnames = array(); // A whitelist of HTTP origin `<host>:<port>` (or just `<host>`) names that are allowed as cache variations.
     73
     74    var $origin = null; // Current Origin header.
    7375    var $query = '';
    7476    var $genlock = false;
     
    9092        }
    9193        return false;
     94
     95
     96
     97
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
    92112    }
    93113
     
    353373}
    354374
     375
     376
     377
     378
     379
     380
     381
     382
     383
     384
     385
    355386if ( ! include_once( WP_CONTENT_DIR . '/object-cache.php' ) )
    356387    return;
     
    394425
    395426// Things that define a unique page.
    396 if ( isset( $_SERVER['QUERY_STRING'] ) )
     427if ( isset( $_SERVER['QUERY_STRING'] ) )
    397428    parse_str($_SERVER['QUERY_STRING'], $batcache->query);
     429
     430
     431
     432
    398433
    399434$batcache->keys = array(
     
    404439    'extra' => $batcache->unique
    405440);
     441
     442
     443
    406444
    407445if ( $batcache->is_ssl() )
     
    548586
    549587// It is safer to omit the final PHP closing tag.
    550 
  • batcache/trunk/batcache.php

    r1538704 r2269546  
    66Author: Andy Skelton
    77Author URI: http://andyskelton.com/
    8 Version: 1.4
     8Version: 1.
    99*/
    1010
  • batcache/trunk/readme.txt

    r1395244 r2269546  
    33Tags: cache, memcache, memcached, speed, performance, load, server
    44Requires at least: 3.2
    5 Tested up to: 4.5
    6 Stable tag: 1.4
     5Tested up to:
     6Stable tag: 1.
    77
    88Batcache uses Memcached to store and serve rendered pages.
     
    5959= What does it have to do with bats? =
    6060
    61 Batcache was named "supercache" when it was written. (It's still called that on WordPress.com.) A few months later, while "supercache" was still private, Donncha released the WP-Super-Cache plugin. It wouldn't be fun to dispute the name or create confusion for users so a name change seemed best. The move from "Super" to "Bat" was inspired by comic book heroes. It has nothing to do with the fact that the author's city is home to the [world's largest urban bat colony](http://www.batcon.org/home/index.asp?idPage=122).
     61Batcache was named "supercache" when it was written. (It's still called that on WordPress.com.) A few months later, while "supercache" was still private, Donncha released the WP-Super-Cache plugin. It wouldn't be fun to dispute the name or create confusion for users so a name change seemed best. The move from "Super" to "Bat" was inspired by comic book heroes. It has nothing to do with the fact that the author's city is home to the [world's largest urban bat colony](http://www.batcon.org/).
    6262
    6363== Changelog ==
    6464
    65 = trunk =
     65= 1.5 =
     66
     67* Add stats for cache hits
     68* PHP 4 constructors are deprecated in PHP7
     69* Removed "HTTP_RAW_POST_DATA" variable replaced with input stream check
     70* Use Plugins API rather than the global variable
     71* Set page gen time to request start if possible
     72* Don't use get_post() when cleaning post cache, use already passed $post object
     73* Only cache GET or HEAD
     74* Add Opt-in CORS GET request cache.
     75= 1.4 =
     76* Misc updates
     77
     78= 1.3 =
     79* Code cleanup, multi-dc support improvements
     80
     81= 1.2 =
    6682* Add REQUEST_METHOD to the cache keys. Prevents GET requests receiving bodyless HEAD responses. This change invalidates the entire cache at upgrade time.
    6783
Note: See TracChangeset for help on using the changeset viewer.