Remove all unneeded if($debug)-statements and replace them with d_echo in the rest of the directories...

This commit is contained in:
Mark Schouten
2015-08-20 16:06:44 +02:00
parent 677a4f3f5f
commit 4792879ce5
10 changed files with 22 additions and 59 deletions

View File

@@ -1664,9 +1664,7 @@ if ($config['memcached']['enable'] === true) {
if (class_exists('Memcached')) {
$memcache = new Memcached();
$memcache->addServer($config['memcached']['host'], $config['memcached']['port']);
if ($debug) {
print_r($memcache->getStats());
}
d_echo($memcache->getStats());
}
else {
echo "WARNING: You have enabled memcached but have not installed the PHP bindings. Disabling memcached support.\n";