Title: [Plugin: XCache Object Cache Backend] Xcache 1.3
Last modified: August 20, 2016

---

# [Plugin: XCache Object Cache Backend] Xcache 1.3

 *  Resolved [Peter Chester](https://wordpress.org/support/users/peterchester/)
 * (@peterchester)
 * [14 years ago](https://wordpress.org/support/topic/plugin-xcache-object-cache-backend-xcache-13/)
 * Apparently this plugin doesn’t work on Xcache versions prior to 1.3 because of
   a dependency on the function xcache_unset_by_prefix().
 * Unfortunately Dreamhost offers 1.2.2 to all its users. That’s a lot of people.
 * Ideally we’d want to replace that function with something that does the same 
   thing but in the mean time, perhaps the plugin can automatically detect if the
   environment supports that and could notify the user that they need Xcache1.3
 * I’ve updated the plugin with this fix and am attaching a diff for this.
 * [https://gist.github.com/2816431](https://gist.github.com/2816431)
 * [http://wordpress.org/extend/plugins/xcache/](http://wordpress.org/extend/plugins/xcache/)

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

 *  Thread Starter [Peter Chester](https://wordpress.org/support/users/peterchester/)
 * (@peterchester)
 * [14 years ago](https://wordpress.org/support/topic/plugin-xcache-object-cache-backend-xcache-13/#post-2774718)
 * Another thing that might work:
 *     ```
       // xcache 1.2 backwards compatibility
       if ( !function_exists( 'xcache_unset_by_prefix' ) ) {
       	function xcache_unset_by_prefix( $prefix ) {
       		// Since we can't clear targetted cache, we'll clear all. :(
       		xcache_clear_cache(XC_TYPE_VAR, 0);
       	}
       }
       ```
   
 *  Plugin Author [Pierre Schmitz](https://wordpress.org/support/users/pierreschmitz/)
 * (@pierreschmitz)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-xcache-object-cache-backend-xcache-13/#post-2774931)
 * Thanks for the hint. I have added a workaround in version 1.0.3.
 * Instead of checking if xcache_unset_by_prefix exists on every request I only 
   do so in the flush() function as it is only used there. On a stock WP install
   flush() is only used by the upgrade script.
 *  [Modern Tribe, Inc.](https://wordpress.org/support/users/moderntribe/)
 * (@moderntribe)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-xcache-object-cache-backend-xcache-13/#post-2774946)
 * Awesome! Thanks!

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

The topic ‘[Plugin: XCache Object Cache Backend] Xcache 1.3’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/xcache.svg)
 * [XCache Object Cache Backend](https://wordpress.org/plugins/xcache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xcache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xcache/)
 * [Active Topics](https://wordpress.org/support/plugin/xcache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xcache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xcache/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Modern Tribe, Inc.](https://wordpress.org/support/users/moderntribe/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-xcache-object-cache-backend-xcache-13/#post-2774946)
 * Status: resolved