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:
Sarjuuk
2025-08-22 16:01:59 +02:00
parent f1b613cfa0
commit 3f8a1838c0
9 changed files with 260 additions and 17 deletions

View File

@@ -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();