Title: Object-cache.php is always loaded
Last modified: August 21, 2016

---

# Object-cache.php is always loaded

 *  [Compute](https://wordpress.org/support/users/compute/)
 * (@compute)
 * [13 years ago](https://wordpress.org/support/topic/object-cachephp-is-always-loaded/)
 * 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/](http://wordpress.org/extend/plugins/w3-total-cache/)

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

 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years ago](https://wordpress.org/support/topic/object-cachephp-is-always-loaded/#post-3757513)
 * 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](https://wordpress.org/support/users/compute/)
 * (@compute)
 * [13 years ago](https://wordpress.org/support/topic/object-cachephp-is-always-loaded/#post-3757514)
 * But if the plugin is not activated the file is still loaded
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years ago](https://wordpress.org/support/topic/object-cachephp-is-always-loaded/#post-3757516)
 * 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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/object-cachephp-is-always-loaded/#post-3757516)
 * Status: not resolved