Don't spew warnings on usage of MEMCACHE_COMPRESSED constant when memcache PHP extension is not present.

Switched to a locally-defined Cache::COMPRESSED, translating that to MEMCACHE_COMPRESSED in the plugin.
This commit is contained in:
Brion Vibber
2010-02-05 09:47:56 -08:00
parent 8d320d7cc2
commit 875e1a70ce
3 changed files with 20 additions and 4 deletions

View File

@@ -47,6 +47,8 @@ class Cache
var $_items = array();
static $_inst = null;
const COMPRESSED = 1;
/**
* Singleton constructor
*
@@ -133,7 +135,7 @@ class Cache
*
* @param string $key The key to use for lookups
* @param string $value The value to store
* @param integer $flag Flags to use, mostly ignored
* @param integer $flag Flags to use, may include Cache::COMPRESSED
* @param integer $expiry Expiry value, mostly ignored
*
* @return boolean success flag