From 747b4039730624fb82cb66176d24f63c11bcc0fb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 13 Apr 2012 10:57:27 +0000 Subject: [PATCH] fixed bug in memcache extension < 3.1.1 with memcache > 1.4.3, eg. Debian 6, causing delete of cache items to fail --- phpgwapi/inc/class.egw_cache_memcache.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_cache_memcache.inc.php b/phpgwapi/inc/class.egw_cache_memcache.inc.php index 5673765fd5..fb27d1ab79 100644 --- a/phpgwapi/inc/class.egw_cache_memcache.inc.php +++ b/phpgwapi/inc/class.egw_cache_memcache.inc.php @@ -103,7 +103,9 @@ class egw_cache_memcache extends egw_cache_provider_check implements egw_cache_p */ function delete(array $keys) { - return $this->memcache->delete(self::key($keys)); + // ,0 required to fix a bug in memcache extension < 3.1.1 with memcache > 1.4.3, eg. Debian 6 + // see https://bugs.php.net/bug.php?id=58943 + return $this->memcache->delete(self::key($keys), 0); } /**