memcache)) || (!$CONFIG->memcache)) { return false; } // If we haven't set variable to something if (($memcache_available !== true) && ($memcache_available !== false)) { try { $tmp = new ElggMemcache(); // No exception thrown so we have memcache available $memcache_available = true; } catch (Exception $e) { $memcache_available = false; } } return $memcache_available; }