X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fconfig.php;h=2664b78a88d657510ba36dd6c963695a4124ae76;hb=7d1a6cc1d60798ff91719686c1b4686f1c4d33e6;hp=ce30d2d192ce12be96b17a5d7d7b893f52e934d4;hpb=61020cf17406f72a7ad929f2d5ee9b8b7c94b52f;p=friendica.git diff --git a/include/config.php b/include/config.php index ce30d2d192..2664b78a88 100644 --- a/include/config.php +++ b/include/config.php @@ -70,7 +70,6 @@ function get_config($family, $key, $instore = false) { if (function_exists("apc_fetch") AND function_exists("apc_exists")) if (apc_exists($family."|".$key)) { $val = apc_fetch($family."|".$key); - //logger("APC: fetched stored value ".$family."|".$key, LOGGER_DEBUG); $a->config[$family][$key] = $val; if ($val === '!!') @@ -78,9 +77,6 @@ function get_config($family, $key, $instore = false) { else return $val; } - // else - //logger("APC: cache miss for value ".$family."|".$key, LOGGER_DEBUG); - $ret = q("SELECT `v` FROM `config` WHERE `cat` = '%s' AND `k` = '%s' LIMIT 1", dbesc($family), @@ -201,15 +197,13 @@ function get_pconfig($uid,$family, $key, $instore = false) { if (function_exists("apc_fetch") AND function_exists("apc_exists")) if (apc_exists($uid."|".$family."|".$key)) { $val = apc_fetch($uid."|".$family."|".$key); - //logger("APC: fetched stored value ".$uid."|".$family."|".$key, LOGGER_DEBUG); $a->config[$uid][$family][$key] = $val; if ($val === '!!') return false; else return $val; - } // else - //logger("APC: cache miss for value ".$family."|".$key, LOGGER_DEBUG); + } $ret = q("SELECT `v` FROM `pconfig` WHERE `uid` = %d AND `cat` = '%s' AND `k` = '%s' LIMIT 1",