chrishecker
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Here’s the diff that fixes it. Not sure why that pgcache.enabled check was taken out of process(), but this disables it correctly.
Chris
=== modified file 'wp-content/plugins/w3-total-cache/lib/W3/PgCache.php' --- wp-content/plugins/w3-total-cache/lib/W3/PgCache.php 2012-03-15 18:54:42 +0000 +++ wp-content/plugins/w3-total-cache/lib/W3/PgCache.php 2012-03-15 21:49:43 +0000 @@ -134,6 +134,10 @@ * Do cache logic */ function process() { + if(!$this->_config->get_string('pgcache.enabled')) { + return; + } + /** * Skip caching for some pages */
This was hosing me as well, so I fixed it. I don’t know why the S3.php code was deciding that it was an error to not force an upload to an already existing file with a matching hash, but that seems silly.
Chris
=== modified file 'wp-content/plugins/w3-total-cache/lib/W3/Cdn/S3.php' --- wp-content/plugins/w3-total-cache/lib/W3/Cdn/S3.php 2011-04-30 06:07:42 +0000 +++ wp-content/plugins/w3-total-cache/lib/W3/Cdn/S3.php 2011-05-08 05:52:57 +0000 @@ -128,7 +128,9 @@ $s3_hash = (isset($info['hash']) ? $info['hash'] : ''); if ($hash === $s3_hash) { - return $this->get_result($local_path, $remote_path, W3TC_CDN_RESULT_ERROR, 'Object already exists'); + return $this->get_result($local_path, $remote_path, W3TC_CDN_RESULT_OK, 'Already exists, okay.'); + } else { + return $this->get_result($local_path, $remote_path, W3TC_CDN_RESULT_ERROR, 'Object already exists with different hash'); } } }
I assume the string doesn’t have to be “OK” for a W3TC_CDN_RESULT_OK, so I made it more descriptive.
Forum: Hacks
In reply to: How to add a div around non-captioned images?No ideas on how to solve this?
Chris
Forum: Plugins
In reply to: [Plugin: Attachment Extender] is there an alternative to this plugin?Okay, I fixed the plugin on my site with wp 2.9.2. At the top of attachment-extender.php, you need to change it to:
if (!function_exists('add_action')) { require_once('../../../wp-load.php'); require_once('../../../wp-admin/includes/media.php'); } // end : if (!function_exists('add_action'))
I’m not a php expert, but apparently media.php was removed from whatever the includes were at some point when wordpress was updated.
Chris
Viewing 4 replies - 1 through 4 (of 4 total)