mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Template/Update (Part 44)
* convert admin - config * test for presence of Memcached on enable * allow self-signed certs on domain self test
This commit is contained in:
@@ -217,6 +217,12 @@ trait TrCache
|
||||
|
||||
private function memcached() : ?\Memcached
|
||||
{
|
||||
if (!class_exists('\Memcached'))
|
||||
{
|
||||
trigger_error('Memcached is enabled by us but not in php!', E_USER_ERROR);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!$this->memcached && (Cfg::get('CACHE_MODE') & CACHE_MODE_MEMCACHED))
|
||||
{
|
||||
$this->memcached = new \Memcached();
|
||||
|
||||
Reference in New Issue
Block a user