Title: Object cache group default patch
Last modified: August 30, 2016

---

# Object cache group default patch

 *  [leonatkinson](https://wordpress.org/support/users/leonatkinson/)
 * (@leonatkinson)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/object-cache-group-default-patch/)
 * We’ve been seeing erratic behavior with object caching to memcache where some
   sites would always miss when fetching from the object cache. Using APC or disk
   works. During investigation, we found the following discussion from a year ago:
 * [https://wordpress.org/support/topic/self-diagnosed-and-fixed-w3-total-cache-bug-in-faulty-object-caching](https://wordpress.org/support/topic/self-diagnosed-and-fixed-w3-total-cache-bug-in-faulty-object-caching)
   
   [https://wordpress.org/support/topic/suggested-changes-to-object-caching-and-transients?replies=3%3F](https://wordpress.org/support/topic/suggested-changes-to-object-caching-and-transients?replies=3%3F)
 * Based on Frederick’s comment:
 * > $group = ‘0’ should be replaced with $group = ” in all /Cache/* files to avoid
   > problems with Object cache. that will be fixed in next release.
 * We have patched W3TC locally, and this resolved our issues. Object caching to
   memcached works now. We changed the following files:
    1. w3-total-cache/lib/W3/Cache/Apc.php
    2. w3-total-cache/lib/W3/Cache/Base.php
    3. w3-total-cache/lib/W3/Cache/Eaccelerator.php
    4. w3-total-cache/lib/W3/Cache/Memcached.php
    5. w3-total-cache/lib/W3/Cache/Wincache.php
    6. w3-total-cache/lib/W3/Cache/Xcache.php
 * And we only changed them per Frederick’s comment. We didn’t make other changes
   proposed in that discussion. We also have not tested anything but memcache caching
   after the patch.
 * I am making a comment here for the benefit of anyone else running into this bug.
   I also would like to know if we can expect a new release that includes this fix.
   I work with a team that operates many WordPress sites and it will be an extra
   burden to maintain a forked version of the plugin.
 * Thanks!
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

The topic ‘Object cache group default patch’ 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/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [leonatkinson](https://wordpress.org/support/users/leonatkinson/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/object-cache-group-default-patch/)
 * Status: not resolved