Title: Object-Cache.php
Last modified: October 27, 2016

---

# Object-Cache.php

 *  Resolved [teddyshotgun](https://wordpress.org/support/users/teddyshotgun/)
 * (@teddyshotgun)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/object-cache-php/)
 * Hello, I have a client who runs a wordpress site.
 * He installed several plugins and received the following fatal-error:
 * _**Fatal error: Call to a member function add\_global\_groups() on null in /home/
   DATABASENAME/public\_html/wp-content/object-cache.php on line 144**_
 * Line 144 of object-cache.php is:
 *     ```
       function wp_cache_add_global_groups($groups) {
               global $wp_object_cache;
   
               $wp_object_cache->add_global_groups($groups);
       ```
   
 * So, I figured it was just some plugin or compatibility issue with a plugin, so
   I went into the database and just removed all his plugins temporarily. I tried
   to reload the page, but I received the exact same error.
 * So I went in and just renmaed ‘object-cache.php’ to another file name so it WP
   wouldn’t have that file to check.
 * Seems like I traced the problem back to some plugin called W3-Total-Cache or 
   something or other?
 * Question is, what is this ‘object-cache.php’ file, what does it do, and is it
   necessary? His website is up and running now, I can’t tell if something is broken
   because I don’t have access to his WP-Admin page, I mean I could get it, but 
   I rather not. Regardless, site seems ok, but will having this ‘object-cache.php’
   file removed cause issues down the road?
 * Thanks.
    -  This topic was modified 9 years, 7 months ago by [teddyshotgun](https://wordpress.org/support/users/teddyshotgun/).

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/object-cache-php/#post-8364001)
 * It’s generally a “drop-in” plugin automatically installed by other plugins as
   a requirement, typically caching plugins.
 * In this case, I recommend contacting support for your main caching plugin. If
   it’s W3 Total Cache, that’s at [https://wordpress.org/support/plugin/w3-total-cache](https://wordpress.org/support/plugin/w3-total-cache)
 *  Thread Starter [teddyshotgun](https://wordpress.org/support/users/teddyshotgun/)
 * (@teddyshotgun)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/object-cache-php/#post-8364827)
 * Much appreciated sir. I have relayed the information to my client, the site functions
   just fine without this file. The plugin, undoubtedly is broken without it. However
   if anyone else runs into this issue, either delete the ‘object-cache.php’ file
   entirely, or rename it something else like ‘object-cache.backup’ etc. This will
   at-least bring your WP site backup, run a restart on your web-server too while
   you’re at it i.e. apache2/httpd.
 * This issue was due to the plug w3-total-cache. If I get information from the 
   plugin developers, I will re-post here.

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

The topic ‘Object-Cache.php’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [object-cache.php](https://wordpress.org/support/topic-tag/object-cache-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [teddyshotgun](https://wordpress.org/support/users/teddyshotgun/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/object-cache-php/#post-8364827)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
