W3 Total Cache - Version 0.9.1.1

Version Description

  • Added an additional notification to help users identify incomplete installations upon activation
  • Reverted previous Cloud Files workaround
  • Fixed a bug with preview mode buttons
  • Fixed a bug with duplicate entries appearing when using minify help tool more than once
  • Fixed a bug with browser cache rules generation for media files
Download this release

Release Info

Developer fredericktownes
Plugin Icon 128x128 W3 Total Cache
Version 0.9.1.1
Comparing to
See all releases

Code changes from version 0.9.1 to 0.9.1.1

inc/define.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- define('W3TC_VERSION', '0.9.1');
4
  define('W3TC_POWERED_BY', 'W3 Total Cache/' . W3TC_VERSION);
5
  define('W3TC_EMAIL', 'w3tc@w3-edge.com');
6
  define('W3TC_PAYPAL_URL', 'https://www.paypal.com/cgi-bin/webscr');
1
  <?php
2
 
3
+ define('W3TC_VERSION', '0.9.1.1');
4
  define('W3TC_POWERED_BY', 'W3 Total Cache/' . W3TC_VERSION);
5
  define('W3TC_EMAIL', 'w3tc@w3-edge.com');
6
  define('W3TC_PAYPAL_URL', 'https://www.paypal.com/cgi-bin/webscr');
lib/CF/cloudfiles_http.php CHANGED
@@ -1187,7 +1187,7 @@ class CF_Http
1187
  if ($conn_type == "PUT_OBJ") {
1188
  curl_setopt($ch, CURLOPT_PUT, 1);
1189
  curl_setopt($ch, CURLOPT_READFUNCTION, array(&$this, '_read_cb'));
1190
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1191
  }
1192
  if ($conn_type == "HEAD") {
1193
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "HEAD");
1187
  if ($conn_type == "PUT_OBJ") {
1188
  curl_setopt($ch, CURLOPT_PUT, 1);
1189
  curl_setopt($ch, CURLOPT_READFUNCTION, array(&$this, '_read_cb'));
1190
+ //curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1191
  }
1192
  if ($conn_type == "HEAD") {
1193
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "HEAD");
lib/W3/Plugin/BrowserCache.php CHANGED
@@ -146,7 +146,7 @@ class W3_Plugin_BrowserCache extends W3_Plugin
146
  $mime_types = array_merge($mime_types, $html_types);
147
  }
148
 
149
- if ($other_expires && $this->_config->get_boolean('browsercache.other.expires') && $other_lifetime) {
150
  $mime_types = array_merge($mime_types, $other_types);
151
  }
152
 
@@ -232,7 +232,7 @@ class W3_Plugin_BrowserCache extends W3_Plugin
232
 
233
  $this->_generate_rules_cache($rules, $cssjs_types, 'cssjs');
234
  $this->_generate_rules_cache($rules, $html_types, 'html');
235
- $this->_generate_rules_cache($rules, $other_types, 'html');
236
 
237
  $rules .= "# END W3TC Browser Cache\n\n";
238
 
146
  $mime_types = array_merge($mime_types, $html_types);
147
  }
148
 
149
+ if ($other_expires && $other_lifetime) {
150
  $mime_types = array_merge($mime_types, $other_types);
151
  }
152
 
232
 
233
  $this->_generate_rules_cache($rules, $cssjs_types, 'cssjs');
234
  $this->_generate_rules_cache($rules, $html_types, 'html');
235
+ $this->_generate_rules_cache($rules, $other_types, 'other');
236
 
237
  $rules .= "# END W3TC Browser Cache\n\n";
238
 
lib/W3/Plugin/TotalCache.php CHANGED
@@ -263,6 +263,26 @@ class W3_Plugin_TotalCache extends W3_Plugin
263
  */
264
  function activate()
265
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
266
  if (!@is_dir(W3TC_CONTENT_DIR)) {
267
  if (@mkdir(W3TC_CONTENT_DIR, 0755)) {
268
  @chmod(W3TC_CONTENT_DIR, 0755);
@@ -1623,7 +1643,7 @@ class W3_Plugin_TotalCache extends W3_Plugin
1623
  */
1624
 
1625
  if (w3_is_preview_config()) {
1626
- $this->_notes[] = sprintf('Preview mode is active: Changed settings will not take effect until you %s or %s preview mode. %s any changed settings (without deploying), or make additional changes.', $this->button_link('deploy', sprintf('admin.php?page=%s&preview_deploy', $this->_page)), $this->button_link('disable', sprintf('options-general.php?page=%s&preview_save&preview=0', $this->_page)), $this->button_link('Preview', w3_get_site_url() . '/?w3tc_preview=1', true));
1627
  }
1628
 
1629
  /**
@@ -4157,7 +4177,10 @@ class W3_Plugin_TotalCache extends W3_Plugin
4157
  foreach ((array) $locations as $location => $config) {
4158
  if (isset($config['files'])) {
4159
  foreach ((array) $config['files'] as $file) {
4160
- $js_groups[$template][] = $file;
 
 
 
4161
  $checked_js[$template][$file] = true;
4162
  $locations_js[$template][$file] = $location;
4163
  }
@@ -4171,7 +4194,10 @@ class W3_Plugin_TotalCache extends W3_Plugin
4171
  foreach ((array) $locations as $location => $config) {
4172
  if (isset($config['files'])) {
4173
  foreach ((array) $config['files'] as $file) {
4174
- $css_groups[$template][] = $file;
 
 
 
4175
  $checked_css[$template][$file] = true;
4176
  }
4177
  }
263
  */
264
  function activate()
265
  {
266
+ $files = array(
267
+ W3TC_INSTALL_DIR . '/db.php',
268
+ W3TC_INSTALL_DIR . '/advanced-cache.php',
269
+ W3TC_INSTALL_DIR . '/object-cache.php'
270
+ );
271
+
272
+ $nonexistent_files = array();
273
+
274
+ foreach ($files as $file) {
275
+ if (!file_exists($file)) {
276
+ $nonexistent_files[] = $file;
277
+ }
278
+ }
279
+
280
+ if (count($nonexistent_files)) {
281
+ $error = sprintf('Unfortunately core file(s): (<strong>%s</strong>) are missing, so activation will fail. Please re-start the installation process from the beginning.', implode(', ', $nonexistent_files));
282
+
283
+ w3_activate_error($error);
284
+ }
285
+
286
  if (!@is_dir(W3TC_CONTENT_DIR)) {
287
  if (@mkdir(W3TC_CONTENT_DIR, 0755)) {
288
  @chmod(W3TC_CONTENT_DIR, 0755);
1643
  */
1644
 
1645
  if (w3_is_preview_config()) {
1646
+ $this->_notes[] = sprintf('Preview mode is active: Changed settings will not take effect until you %s or %s preview mode. %s any changed settings (without deploying), or make additional changes.', $this->button_link('deploy', sprintf('admin.php?page=%s&preview_deploy', $this->_page)), $this->button_link('disable', sprintf('admin.php?page=%s&preview_save&preview=0', $this->_page)), $this->button_link('Preview', w3_get_site_url() . '/?w3tc_preview=1', true));
1647
  }
1648
 
1649
  /**
4177
  foreach ((array) $locations as $location => $config) {
4178
  if (isset($config['files'])) {
4179
  foreach ((array) $config['files'] as $file) {
4180
+ if (!in_array($file, $js_groups[$template])) {
4181
+ $js_groups[$template][] = $file;
4182
+ }
4183
+
4184
  $checked_js[$template][$file] = true;
4185
  $locations_js[$template][$file] = $location;
4186
  }
4194
  foreach ((array) $locations as $location => $config) {
4195
  if (isset($config['files'])) {
4196
  foreach ((array) $config['files'] as $file) {
4197
+ if (!in_array($file, $css_groups[$template])) {
4198
+ $css_groups[$template][] = $file;
4199
+ }
4200
+
4201
  $checked_css[$template][$file] = true;
4202
  }
4203
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: fredericktownes
3
  Tags: user experience, cache, caching, page cache, css cache, js cache, db cache, disk cache, disk caching, database cache, http compression, gzip, deflate, minify, CDN, content delivery network, media library, performance, speed, multiple hosts, CSS, merge, combine, unobtrusive javascript, compress, optimize, optimizer, JavaScript, JS, cascading style sheet, plugin, yslow, YUI, google, google rank, google page speed, S3, CloudFront, AWS, Amazon Web Services, cloud files, rackspace, batcache, wp cache, wp super cache, w3 total cache, buddypress
4
  Requires at least: 2.6
5
  Tested up to: 3.1
6
- Stable tag: 0.9.1
7
 
8
  Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery network (CDN) to WordPress.
9
 
@@ -349,6 +349,13 @@ Please reach out to all of these people and support their projects if you're so
349
 
350
  == Changelog ==
351
 
 
 
 
 
 
 
 
352
  = 0.9.1 =
353
  * Improved Rackspace Cloud Files implementation
354
  * Improved frequently asked questions implementation to support incomplete PHP distributions
3
  Tags: user experience, cache, caching, page cache, css cache, js cache, db cache, disk cache, disk caching, database cache, http compression, gzip, deflate, minify, CDN, content delivery network, media library, performance, speed, multiple hosts, CSS, merge, combine, unobtrusive javascript, compress, optimize, optimizer, JavaScript, JS, cascading style sheet, plugin, yslow, YUI, google, google rank, google page speed, S3, CloudFront, AWS, Amazon Web Services, cloud files, rackspace, batcache, wp cache, wp super cache, w3 total cache, buddypress
4
  Requires at least: 2.6
5
  Tested up to: 3.1
6
+ Stable tag: 0.9.1.1
7
 
8
  Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery network (CDN) to WordPress.
9
 
349
 
350
  == Changelog ==
351
 
352
+ = 0.9.1.1 =
353
+ * Added an additional notification to help users identify incomplete installations upon activation
354
+ * Reverted previous Cloud Files workaround
355
+ * Fixed a bug with preview mode buttons
356
+ * Fixed a bug with duplicate entries appearing when using minify help tool more than once
357
+ * Fixed a bug with browser cache rules generation for media files
358
+
359
  = 0.9.1 =
360
  * Improved Rackspace Cloud Files implementation
361
  * Improved frequently asked questions implementation to support incomplete PHP distributions
w3-total-cache.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: W3 Total Cache
4
  Description: The fastest and most complete WordPress performance plugin. Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery network (CDN) to WordPress.
5
- Version: 0.9.1
6
  Plugin URI: http://www.w3-edge.com/wordpress-plugins/w3-total-cache/
7
  Author: Frederick Townes
8
  Author URI: http://www.linkedin.com/in/w3edge
2
  /*
3
  Plugin Name: W3 Total Cache
4
  Description: The fastest and most complete WordPress performance plugin. Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery network (CDN) to WordPress.
5
+ Version: 0.9.1.1
6
  Plugin URI: http://www.w3-edge.com/wordpress-plugins/w3-total-cache/
7
  Author: Frederick Townes
8
  Author URI: http://www.linkedin.com/in/w3edge