From bdf942aa29c8c4baebdc895714ee96efe7626a42 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 24 Apr 2019 18:19:44 +0200 Subject: [PATCH] System check for memcache/redis when used See #2811 --- .../install/files/lib/acp/page/SystemCheckPage.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); -- 2.20.1