From b5cee8fe4945c0ebdc621f82992aa9b4eb698b0c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 13 Sep 2009 15:09:45 +0000 Subject: - Patch #576096 by CorniI: use the new cache API. --- includes/cache-install.inc | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'includes/cache-install.inc') diff --git a/includes/cache-install.inc b/includes/cache-install.inc index f342019f7..3ab41410d 100644 --- a/includes/cache-install.inc +++ b/includes/cache-install.inc @@ -10,19 +10,23 @@ * implementation during normal operations would have a negative impact * on performance. */ +class DrupalFakeCache implements DrupalCacheInterface { + function __construct($bin) { + } -function cache_get($key, $table = 'cache') { - return FALSE; -} + function get($cid) { + return FALSE; + } -function cache_get_multiple(array &$cids, $bin = 'cache') { - return array(); -} + function getMultiple(&$cids) { + return array(); + } -function cache_set($cid, $data, $table = 'cache', $expire = CACHE_PERMANENT, $headers = NULL) { - return; -} -function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) { - return; + function set($cid, $data, $expire = CACHE_PERMANENT, array $headers = NULL) { + } + + function clear($cid = NULL, $wildcard = FALSE) { + } + } -- cgit v1.2.3