From d28f83d70e92d0e9c3aab8506721cddb2b247c81 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 30 Oct 2012 12:25:10 +0000 Subject: [PATCH] disable permanent error-log and tests --- phpgwapi/inc/class.egw_cache.inc.php | 4 ++-- phpgwapi/inc/class.egw_cache_memcache.inc.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.egw_cache.inc.php b/phpgwapi/inc/class.egw_cache.inc.php index a4cf451c0f..374b969064 100644 --- a/phpgwapi/inc/class.egw_cache.inc.php +++ b/phpgwapi/inc/class.egw_cache.inc.php @@ -726,7 +726,7 @@ abstract class egw_cache_provider_check implements egw_cache_provider // some testcode, if this file is called via it's URL // can be run on command-line: sudo php -d apc.enable_cli=1 -f phpgwapi/inc/class.egw_cache.inc.php -if (isset($_SERVER['SCRIPT_FILENAME']) && realpath($_SERVER['SCRIPT_FILENAME']) == __FILE__) +/*if (isset($_SERVER['SCRIPT_FILENAME']) && realpath($_SERVER['SCRIPT_FILENAME']) == __FILE__) { if (!isset($_SERVER['HTTP_HOST'])) { @@ -763,7 +763,7 @@ if (isset($_SERVER['SCRIPT_FILENAME']) && realpath($_SERVER['SCRIPT_FILENAME']) printf($e->getMessage()."\n\n"); } } -} +}*/ // setting apc as default provider, if apc_fetch function exists AND further checks in egw_cache_apc recommed it if (is_null(egw_cache::$default_provider)) diff --git a/phpgwapi/inc/class.egw_cache_memcache.inc.php b/phpgwapi/inc/class.egw_cache_memcache.inc.php index 3d5d18cee4..5e8f07aaba 100644 --- a/phpgwapi/inc/class.egw_cache_memcache.inc.php +++ b/phpgwapi/inc/class.egw_cache_memcache.inc.php @@ -118,7 +118,7 @@ class egw_cache_memcache extends egw_cache_provider_check implements egw_cache_p foreach($multiple as $location => $data) { $key = substr($location,$prefix_len); - error_log(__METHOD__."(".array2string($locations).") key='$key' found ".bytes($data)." bytes)."); + //error_log(__METHOD__."(".array2string($locations).") key='$key' found ".bytes($data)." bytes)."); $ret[$key] = unserialize($data); } return $ret;