Title: charleslf's Replies | WordPress.org

---

# charleslf

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/charleslf/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/charleslf/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Issues after Version 0.9.5.4 update](https://wordpress.org/support/topic/issues-after-version-0-9-5-4-update/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/issues-after-version-0-9-5-4-update/#post-9076296)
 * [@kyranwallace14](https://wordpress.org/support/users/kyranwallace14/), [@mrgrownupgeek](https://wordpress.org/support/users/mrgrownupgeek/):
   Save yourselves the headache and use the version in [@szepeviktor](https://wordpress.org/support/users/szepeviktor/)’
   s comment. It’s way more stable.
 * [https://github.com/szepeviktor/w3-total-cache-fixed](https://github.com/szepeviktor/w3-total-cache-fixed)
    -  This reply was modified 9 years, 3 months ago by [charleslf](https://wordpress.org/support/users/charleslf/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Bug in W3 Object Cache](https://wordpress.org/support/topic/bug-in-w3-object-cache/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/bug-in-w3-object-cache/#post-8910373)
 * Hello [@dageshi](https://wordpress.org/support/users/dageshi/),
 * Thanks for providing the steps to replicate this problem.
 * Check this thread for more information pertaining to your issue: [https://github.com/szepeviktor/w3-total-cache-fixed/issues/438](https://github.com/szepeviktor/w3-total-cache-fixed/issues/438)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Secuirty Issue](https://wordpress.org/support/topic/security-major-dos-flaw/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/security-major-dos-flaw/#post-8615536)
 * [@matthewahawker](https://wordpress.org/support/users/matthewahawker/): you might
   also want to post about this on the [community edition](https://github.com/szepeviktor/w3-total-cache-fixed)
   of w3tc.
    There’s better chance of getting a fix pushed there.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Redis extension doesn’t save to different buckets](https://wordpress.org/support/topic/redis-extension-doesnt-save-to-different-buckets/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/redis-extension-doesnt-save-to-different-buckets/#post-8255686)
 * Hey [@tzkmx](https://wordpress.org/support/users/tzkmx/),
 * Check my reply here: [https://wordpress.org/support/topic/redis-db-instances-fail/](https://wordpress.org/support/topic/redis-db-instances-fail/)
   
   namely, this patch: [https://github.com/charlesLF/fix-w3tc/commit/c35f7815d173489655835bf2f6f4bf3a777e0628](https://github.com/charlesLF/fix-w3tc/commit/c35f7815d173489655835bf2f6f4bf3a777e0628)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Redis DB Instances – Fail](https://wordpress.org/support/topic/redis-db-instances-fail/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/redis-db-instances-fail/#post-8241907)
 * I think I will use your patch (or a variation of it) for the key namespacing 
   on my local installs. This is indeed helpful for the cases where different WP
   installs reside on different subfolders of the same domain.
 * I’ll push it to the same repo branch when done, so you might want to keep an 
   eye 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Redis DB Instances – Fail](https://wordpress.org/support/topic/redis-db-instances-fail/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/redis-db-instances-fail/#post-8240814)
 * Hey [@webmdt](https://wordpress.org/support/users/webmdt/),
 * Nice catch on the Redis DB issue.
 * I see that you have found a workaround that works for you.
 * If you’re still interested in how to make W3TC use the correct Redis DB, here’s
   the patch: [https://github.com/charlesLF/fix-w3tc/commit/c35f7815d173489655835bf2f6f4bf3a777e0628](https://github.com/charlesLF/fix-w3tc/commit/c35f7815d173489655835bf2f6f4bf3a777e0628)
 * Cheers
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Fix for “Fatal error: require():”](https://wordpress.org/support/topic/fix-for-fatal-error-require/)
 *  Thread Starter [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/fix-for-fatal-error-require/#post-8232719)
 * [@kent-brockman](https://wordpress.org/support/users/kent-brockman/), here’s 
   a more thorough patch:
 *     ```
       function w3tc_class_autoload( $class ) {
       	$base = null;
   
       	// some php pass classes with slash
       	if ( substr( $class, 0, 1 ) == "\\" )
       		$class = substr( $class, 1 );
   
       	if ( substr( $class, 0, 5 ) == 'HTTP_' || substr( $class, 0, 7 ) == 'Minify_' ) {
       		$base = W3TC_LIB_DIR . DIRECTORY_SEPARATOR . 'Minify' . DIRECTORY_SEPARATOR;
       	} elseif ( substr( $class, 0, 8 ) == 'Minify0_' ) {
       		$base = W3TC_LIB_DIR . DIRECTORY_SEPARATOR . 'Minify' . DIRECTORY_SEPARATOR;
       		$class = substr( $class, 8 );
       	} elseif ( substr( $class, 0, 7 ) == 'Google_' &&
       		( !defined( 'W3TC_GOOGLE_LIBRARY' ) || W3TC_GOOGLE_LIBRARY ) ) {
       		// Google library
       		$classPath = explode( '_', $class );
       		if ( count( $classPath ) > 3 ) {
       			// Maximum class file path depth in this project is 3.
       			$classPath = array_slice( $classPath, 0, 3 );
       		}
   
       		$filePath = W3TC_LIB_DIR . DIRECTORY_SEPARATOR .
       			implode( '/', $classPath ) . '.php';
       		if ( file_exists( $filePath ) ) {
                           require $filePath;
                       }
       		return;
       	}
   
       	if ( !is_null( $base ) ) {
       		$file = $base . strtr( $class, "\\_",
       			DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR ) . '.php';
       		if ( file_exists( $file ) ) {
       			require_once $file;
                       }
       	} else if ( substr( $class, 0, 5 ) == 'W3TC\\' ) {
       			$filename = W3TC_DIR . DIRECTORY_SEPARATOR . substr( $class, 5 ) . '.php';
   
                               if ( file_exists( $filename ) ) {
                                   require $filename;
                               }
                               else {
                                   if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
                                           debug_print_backtrace();
                                   }
       			}
   
                               return;
       		}
       }
       ```
   
 * basically just replace `is_readable()` with `file_exists()` in the original patch
   above.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Conflict with Google Analytics Dashboard for WP (GADWP)](https://wordpress.org/support/topic/conflict-with-google-analytics-dashboard-for-wp-gadwp/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/conflict-with-google-analytics-dashboard-for-wp-gadwp/#post-8228337)
 * [@pferdetermine](https://wordpress.org/support/users/pferdetermine/) .. what 
   does “didn’t work at all” mean? No error message whatsoever?
 * I tried GADWP locally. Works fine with the patch in the above link.
    -  This reply was modified 9 years, 10 months ago by [charleslf](https://wordpress.org/support/users/charleslf/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Fix for “Fatal error: require():”](https://wordpress.org/support/topic/fix-for-fatal-error-require/)
 *  Thread Starter [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/fix-for-fatal-error-require/#post-8224055)
 * [@destac](https://wordpress.org/support/users/destac/), no problem 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Do Not Install! This Update is Terrible. Please Fix](https://wordpress.org/support/topic/do-not-install-this-update-is-terrible-please-fix/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/do-not-install-this-update-is-terrible-please-fix/#post-8224041)
 * [@casbboy](https://wordpress.org/support/users/casbboy/) here are your options:
 * * If you are not seeing any other errors, then stick with the current W3TC version.
   The new release contains a completely refactored code that improves performance,
   bug fixes, and new features. I am pretty sure Frederick will update the plugin
   very soon based on the new bugs mentioned in this forum.
    * If you prefer staying
   on the older version, I recommend using the [community-driven edition](https://github.com/szepeviktor/fix-w3tc)
   instead as it incorporates many bug fixes based on the older 0.9.4 plugin version.
 * It’s up to you 🙂
    -  This reply was modified 9 years, 10 months ago by [charleslf](https://wordpress.org/support/users/charleslf/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Fix for “Fatal error: Class ‘W3_Config'”](https://wordpress.org/support/topic/fix-for-fatal-error-class-w3_config/)
 *  Thread Starter [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/fix-for-fatal-error-class-w3_config/#post-8224004)
 * [@johnmichaelpix](https://wordpress.org/support/users/johnmichaelpix/), you mean
   the `w3-total-cache-api.php` file? This should be in: `wp-content/plugins/w3-
   total-cache/w3-total-cache-api.php’
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Error after updating plug in](https://wordpress.org/support/topic/error-after-updating-plug-in/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/error-after-updating-plug-in/#post-8223994)
 * Please try the suggestion in [https://wordpress.org/support/topic/fix-for-fatal-error-require/](https://wordpress.org/support/topic/fix-for-fatal-error-require/)
    -  This reply was modified 9 years, 10 months ago by [charleslf](https://wordpress.org/support/users/charleslf/).
    -  This reply was modified 9 years, 10 months ago by [charleslf](https://wordpress.org/support/users/charleslf/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Do Not Install! This Update is Terrible. Please Fix](https://wordpress.org/support/topic/do-not-install-this-update-is-terrible-please-fix/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/do-not-install-this-update-is-terrible-please-fix/#post-8223990)
 * [@casbboy](https://wordpress.org/support/users/casbboy/), did you read this: 
   [https://wordpress.org/support/topic/fix-for-fatal-error-require/](https://wordpress.org/support/topic/fix-for-fatal-error-require/)?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Error on publish new comment](https://wordpress.org/support/topic/error-on-publish-new-comment/)
 *  [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/error-on-publish-new-comment/#post-8223257)
 * Can you try the suggestion posted here: [https://wordpress.org/support/topic/fix-for-fatal-error-require/](https://wordpress.org/support/topic/fix-for-fatal-error-require/)?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Fix for “Fatal error: require():”](https://wordpress.org/support/topic/fix-for-fatal-error-require/)
 *  Thread Starter [charleslf](https://wordpress.org/support/users/charleslf/)
 * (@charleslf)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/fix-for-fatal-error-require/#post-8223248)
 * Try the workaround posted above and see if that clears it.

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/charleslf/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/charleslf/replies/page/2/?output_format=md)