Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19296

Compute on "[Plugin: W3 Total Cache] Object-cache.php is always loaded"

$
0
0

The object-cache.php file always loads even tho w3tc is not activated. This causes caching problems and the site does not update data as it should.

For instance moving widgets arround will only happend after a few minutes which is really a pain while testing.

As I think this has more to do with a Wordpress issue than a w3tc issue I've also posted a ticket on the Wordpress forum.

A way to solve this is to add this to the top of the object cache file:
wp-content/object-cache.php

//ObjectCache Version: 1.1
if( defined( 'WP_OBJECT_CACHE' ) && !WP_OBJECT_CACHE ) {
	require_once ( ABSPATH . WPINC . '/cache.php' );
	return;
}

That way its possible to disable the object cache and use the wordpress cache.php file instead (the same thing they do inside wp-includes/load.php) by adding define('WP_OBJECT_CACHE', false); to wp-config.php

What are the for and against for making this change to w3tc?

Patrick

http://wordpress.org/extend/plugins/w3-total-cache/


Viewing all articles
Browse latest Browse all 19296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>