Skip to content

Instantly share code, notes, and snippets.

@peterchester
Created May 27, 2012 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterchester/2816431 to your computer and use it in GitHub Desktop.
Save peterchester/2816431 to your computer and use it in GitHub Desktop.
Xcache Object Cache update to account for versions of Xcache prior to 1.3
Index: object-cache.php
===================================================================
--- object-cache.php (revision 548800)
+++ object-cache.php (working copy)
@@ -92,8 +92,8 @@
public function __construct() {
global $table_prefix;
- if ( !function_exists( 'xcache_get' ) ) {
- wp_die( 'You do not have XCache installed, so you cannot use the XCache object cache backend. Please remove the <code>object-cache.php</code> file from your content directory.' );
+ if ( !function_exists( 'xcache_unset_by_prefix' ) ) {
+ wp_die( 'You do not have XCache 1.3+ installed, so you cannot use the XCache object cache backend. Please remove the <code>object-cache.php</code> file from your content directory.' );
}
$this->prefix = DB_HOST.'.'.DB_NAME.'.'.$table_prefix;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment