WordPress.org

Plugin Directory

Changeset 417121


Ignore:
Timestamp:
07/30/11 09:01:13 (3 years ago)
Author:
fredericktownes
Message:
 
Location:
w3-total-cache/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • w3-total-cache/trunk/inc/options/faq.xml

    r290810 r417121  
    547547                    <li>define('DONOTMINIFY', true);<br />Disables minify for a given page.</li> 
    548548                    <li>define('DONOTCDN', true);<br />Disables content delivery network for a given page.</li> 
    549                     <li>define('DONOTCACHCEOBJECT', true);<br />Disables object cache for a given page.</li> 
     549                    <li>define('DONOTCACHEOBJECT', true);<br />Disables object cache for a given page.</li> 
    550550                </ul> 
    551551            ]]></answer> 
  • w3-total-cache/trunk/lib/W3/ObjectCache.php

    r416323 r417121  
    129129        if ($this->_can_ob()) { 
    130130            ob_start(array( 
    131                 &$this, 
    132                 'ob_callback' 
    133             )); 
     131                          &$this, 
     132                          'ob_callback' 
     133                     )); 
    134134        } 
    135135    } 
     
    167167            } 
    168168        } else { 
    169             $caching = $this->_can_cache2($id, $group, $reason); 
     169            $caching = $this->_can_cache_read($id, $group, $reason); 
    170170            $internal = false; 
    171171 
     
    248248        $reason = ''; 
    249249 
    250         if ($this->_can_cache2($id, $group, $reason)) { 
     250        if ($this->_can_cache_write($id, $group, $reason)) { 
    251251            $cache = & $this->_get_cache(); 
    252252 
     
    271271        $reason = ''; 
    272272 
    273         if ($this->_can_cache2($id, $group, $reason)) { 
     273        if ($this->_can_cache_write($id, $group, $reason)) { 
    274274            $cache = & $this->_get_cache(); 
    275275 
     
    464464 
    465465        /** 
    466          * Check for DONOTCACHCEOBJECT constant 
    467          */ 
    468         if (defined('DONOTCACHCEOBJECT') && DONOTCACHCEOBJECT) { 
    469             $this->_cache_reject_reason = 'DONOTCACHCEOBJECT constant is defined'; 
    470  
    471             return false; 
    472         } 
    473  
    474         /** 
    475          * Skip if admin 
    476          */ 
    477         if ($this->_config->get_boolean('objectcache.reject.admin') && defined('WP_ADMIN')) { 
    478             $this->_cache_reject_reason = 'wp-admin'; 
     466         * Check for DONOTCACHEOBJECT constant 
     467         */ 
     468        if (defined('DONOTCACHEOBJECT') && DONOTCACHEOBJECT) { 
     469            $this->_cache_reject_reason = 'DONOTCACHEOBJECT constant is defined'; 
    479470 
    480471            return false; 
     
    494485 
    495486    /** 
    496      * Check if caching allowed runtime 
     487     * Check if persistent cache reading is allowed 
    497488     * 
    498489     * @param string $id 
     
    501492     * @return boolean 
    502493     */ 
    503     function _can_cache2($id, $group, &$cache_reject_reason) { 
     494    function _can_cache_read($id, $group, &$cache_reject_reason) { 
     495        /** 
     496         * Skip if writing is disabled 
     497         */ 
     498        if (!$this->_can_cache_write($id, $group, $cache_reject_reason)) { 
     499            return false; 
     500        } 
     501 
     502        /** 
     503         * Skip if admin 
     504         */ 
     505        if ($this->_config->get_boolean('objectcache.reject.admin') && defined('WP_ADMIN')) { 
     506            $this->_cache_reject_reason = 'wp-admin'; 
     507 
     508            return false; 
     509        } 
     510 
     511        return true; 
     512    } 
     513 
     514    /** 
     515     * Check if persistent cache writing is allowed 
     516     * 
     517     * @param $id 
     518     * @param $group 
     519     * @param $cache_reject_reason 
     520     * @return bool 
     521     */ 
     522    function _can_cache_write($id, $group, &$cache_reject_reason) { 
    504523        /** 
    505524         * Skip if disabled 
     
    512531 
    513532        /** 
    514          * Check for DONOTCACHCEOBJECT constant 
    515          */ 
    516         if (defined('DONOTCACHCEOBJECT') && DONOTCACHCEOBJECT) { 
    517             $cache_reject_reason = 'DONOTCACHCEOBJECT constant is defined'; 
     533         * Check for DONOTCACHEOBJECT constant 
     534         */ 
     535        if (defined('DONOTCACHEOBJECT') && DONOTCACHEOBJECT) { 
     536            $cache_reject_reason = 'DONOTCACHEOBJECT constant is defined'; 
    518537 
    519538            return false; 
  • w3-total-cache/trunk/readme.txt

    r411842 r417121  
    1414Recommended by web hosts like: MediaTemple, Host Gator, Page.ly and WP Engine and countless more. 
    1515 
    16 Trusted by countless sites like: mattcutts.com, mashable.com, smashingmagazine.com, makeuseof.com, yoast.com, kiss925.com, pearsonified.com, lockergnome.com, johnchow.com, ilovetypography.com, webdesignerdepot.com, css-tricks.com and tens of thousands of others. 
     16Trusted by countless sites like: stevesouders.com, mattcutts.com, mashable.com, smashingmagazine.com, makeuseof.com, yoast.com, kiss925.com, pearsonified.com, lockergnome.com, johnchow.com, ilovetypography.com, webdesignerdepot.com, css-tricks.com and tens of thousands of others. 
    1717 
    1818W3 Total Cache improves the user experience of your site by improving your server performance, caching every aspect of your site, reducing the download times and providing transparent content delivery network (CDN) integration. 
     
    252252**July 2011:** 
    253253 
     254* [How Your Website Loses 7% of Potential Conversions](http://www.clickz.com/clickz/column/2097323/website-loses-potential-conversions), Bryan Eisenberg 
    254255* [How to Integrate Google Page Speed with W3 Total Cache](http://geekscalling.com/google/how-to-integrate-google-page-speed-with-w3-total-cache), Anish 
    255256* [22 WordPress Plugins for Content Marketers](http://www.business2community.com/content-marketing/22-wordpress-plugins-for-content-marketers-040787), Brody Dorland 
     
    453454== Changelog == 
    454455 
     456= 0.9.2.4 = 
     457* Added support for Microsoft SQL Server 
     458* Added API support for MediaTemple ProCDN (EdgeCast) 
     459* Fixed WSOD (white screen of death) caused by minify in some hosting configurations 
     460* Fixed text encoding in feeds 
     461* Fixed incorrect mime-type in feeds (which caused feedburner anomalies) 
     462* Fixed array to string notices 
     463* Fixed expires header support for AWS 
     464* Fixed minification of font-family 
     465* Fixed object cache write issue in WP Admin 
     466* Improved (reduced) memory utilization by up to 70% 
     467* Improved activation reliability 
     468* Improved reliability of minify auto mode 
     469* Improved security (added nonces, no directory indexing, prevent direct file access) 
     470* Improved compatibility with network based file systems 
     471 
    455472= 0.9.2.3 = 
    456473* Added additional CloudFlare IP range 
    457 * Fixed bug in html tidy encoding 
    458 * Fixed bug with NetDNA / MaxCDN purging 
     474* Fixed html tidy encoding 
     475* Fixed NetDNA / MaxCDN purging 
    459476* Improved handling of markers in .htaccess files - easier upgrades 
    460477* Improved cache busting logic 
     
    464481 
    465482= 0.9.2.2 = 
    466 * Fixed bug with minify directives, e.g.: "File param is missing," causing minify caching to fail 
    467 * Fixed bug with document root detection for IIS server 
    468 * Fixed bug with HTTP compression when using CloudFlare 
    469 * Fixed bug with HTML validation with JavaScript embed tags 
    470 * Fixed bug with fancy permalinks, sites with or without trailing slashes can now cache pages using disk enhanced 
    471 * Fixed bug with appending WP_CACHE define into wp-config.php for some users 
    472 * Fixed bug with path to JSON.php 
    473 * Fixed bug with listing of buckets error with AWS S3 
     483* Fixed minify directives, e.g.: "File param is missing," causing minify caching to fail 
     484* Fixed document root detection for IIS server 
     485* Fixed HTTP compression when using CloudFlare 
     486* Fixed HTML validation with JavaScript embed tags 
     487* Fixed fancy permalinks, sites with or without trailing slashes can now cache pages using disk enhanced 
     488* Fixed appending WP_CACHE define into wp-config.php for some users 
     489* Fixed path to JSON.php 
     490* Fixed listing of buckets error with AWS S3 
    474491* Improved compatibility with WordPress SEO by Yoast, 404 error exception list sitemap value changed to: sitemap(_index|[0-9]+)?\.xml(\.gz)? 
    475492 
    476493= 0.9.2.1 = 
    477 * Fixed bug with existing installation upgrades: set minify to manual mode by default 
    478 * Fixed bug with unsuccessful transfer queue button 
    479 * Fixed bug with background in lightbox 
    480 * Fixed bug with handling of local http requests being blocked on some hosts 
     494* Fixed existing installation upgrades: set minify to manual mode by default 
     495* Fixed unsuccessful transfer queue button 
     496* Fixed background in lightbox 
     497* Fixed handling of local http requests being blocked on some hosts 
    481498* Disabled CDN for minify files when auto mode is selected and the CDN method is origin push 
    482499 
     
    510527* Fixed bugs with API changes with Rackspace Cloudfiles 
    511528* Fixed bugs with origin push content delivery network methods 
    512 * Fixed bug with HTML encoding 
    513 * Fixed bug with emptying cache for various cache keys 
    514 * Fixed bug with rejected CDN file support 
    515 * Fixed bug with HTTPS mode in WP Admin 
    516 * Fixed bug with relative document root for disk enhanced page cache 
    517 * Fixed bug with trailing slash for disk enhanced page cache 
    518 * Fixed bug with minify template group settings being lost upon upgrade 
     529* Fixed HTML encoding 
     530* Fixed emptying cache for various cache keys 
     531* Fixed rejected CDN file support 
     532* Fixed HTTPS mode in WP Admin 
     533* Fixed relative document root for disk enhanced page cache 
     534* Fixed trailing slash for disk enhanced page cache 
     535* Fixed minify template group settings being lost upon upgrade 
    519536* Fixed division by zero error 
    520 * Fixed bug with object cache clones 
     537* Fixed object cache clones 
    521538* Moved browser cache rules to site root instead of document root 
    522539 
     
    527544* Added option for 404 file exceptions list in browser cache 
    528545* Added exception for NextGen Gallery flash image rotator to CDN settings 
    529 * Fixed bug with external file imports 
    530 * Fixed bug with document root detection for CDN 
    531 * Fixed bug with minify file search 
     546* Fixed external file imports 
     547* Fixed document root detection for CDN 
     548* Fixed minify file search 
    532549* Fixed bugs with AWS CloudFront distribution creation and saving 
    533 * Fixed bug with Rackspace Cloud Files API 
     550* Fixed Rackspace Cloud Files API 
    534551 
    535552= 0.9.1.2 = 
     
    540557* Fixed issues with document root detection on some servers 
    541558* Fixed an issue with minification of script tags with HTML comments inside 
    542 * Fixed bug with minify gzip compression 
    543 * Fixed bug with cache-control headers 
    544 * Fixed bug with empty fatal error notification on network activation 
    545 * Fixed bug with minify when https is active 
    546 * Fixed bug with fatal error upon activation when uploads path does not exist 
     559* Fixed minify gzip compression 
     560* Fixed cache-control headers 
     561* Fixed empty fatal error notification on network activation 
     562* Fixed minify when https is active 
     563* Fixed fatal error upon activation when uploads path does not exist 
    547564 
    548565= 0.9.1.1 = 
    549566* Added an additional notification to help users identify incomplete installations upon activation 
    550567* Reverted previous Cloud Files workaround 
    551 * Fixed bug with preview mode buttons 
    552 * Fixed bug with duplicate entries appearing when using minify help tool more than once 
    553 * Fixed bug with browser cache rules generation for media files 
     568* Fixed preview mode buttons 
     569* Fixed duplicate entries appearing when using minify help tool more than once 
     570* Fixed browser cache rules generation for media files 
    554571 
    555572= 0.9.1 = 
     
    628645* Improved non-blocking embedding reliability 
    629646* Improved memcached detection by supporting only PECL memcache 
    630 * Fixed bug with disk enhanced method of page cache in WordPress MU 
     647* Fixed disk enhanced method of page cache in WordPress MU 
    631648* Fixed false match of page cache files in disk enhanced method of page cache 
    632 * Fixed bug with cron anomalies caused by caching of wp_options table 
     649* Fixed cron anomalies caused by caching of wp_options table 
    633650* Fixed missing trailing slash issue when using disk enhanced page caching 
    634651* Fixed auto-embed bug CSS and JS when already manually embedded 
     
    674691* Improved various notifications and error messages 
    675692* Improved optional .htaccess directives (located in /ini/_htaccess) 
    676 * Fixed bug with JS minifcation saving group settings 
    677 * Fixed bug with false positives for duplicate CSS or JS in minify settings 
     693* Fixed JS minifcation saving group settings 
     694* Fixed false positives for duplicate CSS or JS in minify settings 
    678695* Fixed bug causing settings to be lost on upgrade 
    679 * Fixed bug with attachment URI when CDN mode enabled 
     696* Fixed attachment URI when CDN mode enabled 
    680697* Fixed small bug with FTP upload when CDN Method is Mirror (Origin Pull) 
    681 * Fixed bug with the URI for wlwmanfiest.xml when CDN enabled  
    682 * Fixed bug with handling of HTTPS objects according to options 
    683 * Fixed bug with emptying disk cache under various obscure permutations 
    684 * Fixed bug with handling of obscure open_basedir restrictions 
     698* Fixed the URI for wlwmanfiest.xml when CDN enabled  
     699* Fixed handling of HTTPS objects according to options 
     700* Fixed emptying disk cache under various obscure permutations 
     701* Fixed handling of obscure open_basedir restrictions 
    685702* Fixed various bugs with emptying cache under various obscure permutations 
    686 * Fixed bug with installations deeper than document root 
     703* Fixed installations deeper than document root 
    687704 
    688705= 0.8 = 
     
    713730* Minified files now (optionally) upload automatically according to update interval (expiry time) 
    714731* Changed directory of minify working files to wp-content/w3tc-cache/ 
    715 * Fixed bug with parsing memcached server strings 
    716 * Fixed bug with minify sometimes not creating files as it should 
     732* Fixed parsing memcached server strings 
     733* Fixed minify sometimes not creating files as it should 
    717734* Addressed WordPress network activation/deactivation issues 
    718735* Provided memcache.ini directives updated to improve network throughput 
     
    725742* Improved compatibility with suPHP 
    726743* Improved reliability of Media Library Export 
    727 * Fixed bug with database cache that caused comment counts to become out of date 
     744* Fixed database cache that caused comment counts to become out of date 
    728745* Fixed minor issue with URI with CDN functionality enabled 
    729746* Removed unnecessary minify options 
Note: See TracChangeset for help on using the changeset viewer.