mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove all unneeded if($debug)-statements and replace them with d_echo in the rest of the directories...
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user