• Compute

    (@compute)


    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://ww.wp.xz.cn/extend/plugins/w3-total-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Frederick Townes

    (@fredericktownes)

    You can remove it if you dont have Object Cache module enabled in W3TC. Should be removed by itself if DB cache is not enabled.

    Thread Starter Compute

    (@compute)

    But if the plugin is not activated the file is still loaded

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    That’s how WordPress works, that’s not a bug.

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

The topic ‘Object-cache.php is always loaded’ is closed to new replies.