Title: chrishecker's Replies | WordPress.org

---

# chrishecker

  [  ](https://wordpress.org/support/users/chrishecker/)

 *   [Profile](https://wordpress.org/support/users/chrishecker/)
 *   [Topics Started](https://wordpress.org/support/users/chrishecker/topics/)
 *   [Replies Created](https://wordpress.org/support/users/chrishecker/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/chrishecker/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/chrishecker/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/chrishecker/engagements/)
 *   [Favorites](https://wordpress.org/support/users/chrishecker/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] [Plugin: W3 Total Cache] page cache disabled but still creating pgcache files?](https://wordpress.org/support/topic/plugin-w3-total-cache-page-cache-disabled-but-still-creating-pgcache-files/)
 *  Thread Starter [chrishecker](https://wordpress.org/support/users/chrishecker/)
 * (@chrishecker)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-w3-total-cache-page-cache-disabled-but-still-creating-pgcache-files/#post-2631077)
 * 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
                 */
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] [Plugin: W3 Total Cache] CloudFront: Object Already Exists (Failed Transfer)](https://wordpress.org/support/topic/plugin-w3-total-cache-cloudfront-object-already-exists-failed-transfer/)
 *  [chrishecker](https://wordpress.org/support/users/chrishecker/)
 * (@chrishecker)
 * [15 years ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cloudfront-object-already-exists-failed-transfer/#post-1759847)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How to add a div around non-captioned images?](https://wordpress.org/support/topic/how-to-add-a-div-around-non-captioned-images/)
 *  Thread Starter [chrishecker](https://wordpress.org/support/users/chrishecker/)
 * (@chrishecker)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/how-to-add-a-div-around-non-captioned-images/#post-2016477)
 * No ideas on how to solve this?
 * Chris
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Attachment Extender] is there an alternative to this plugin?](https://wordpress.org/support/topic/plugin-attachment-extender-is-there-an-alternative-to-this-plugin/)
 *  [chrishecker](https://wordpress.org/support/users/chrishecker/)
 * (@chrishecker)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-attachment-extender-is-there-an-alternative-to-this-plugin/#post-1368351)
 * 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)