From: Alexander Ebert Date: Wed, 24 Apr 2019 16:19:44 +0000 (+0200) Subject: System check for memcache/redis when used X-Git-Tag: 5.2.0_Alpha_1~119 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bdf942aa29c8c4baebdc895714ee96efe7626a42;p=GitHub%2FWoltLab%2FWCF.git System check for memcache/redis when used See #2811 --- diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index 1b96ed90ad..f26d67f198 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -117,6 +117,14 @@ class SystemCheckPage extends AbstractPage { $this->phpExtensions[] = 'imagick'; } + if (CACHE_SOURCE_TYPE === 'memcached' && !in_array('memcached', $this->phpExtensions)) { + $this->phpExtensions[] = 'memcached'; + } + + if (CACHE_SOURCE_TYPE === 'redis' && !in_array('redis', $this->phpExtensions)) { + $this->phpExtensions[] = 'redis'; + } + $this->validateMysql(); $this->validatePhpExtensions(); $this->validatePhpMemoryLimit();