System check for memcache/redis when used
authorAlexander Ebert <ebert@woltlab.com>
Wed, 24 Apr 2019 16:19:44 +0000 (18:19 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 24 Apr 2019 16:19:44 +0000 (18:19 +0200)
See #2811

wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php

index 1b96ed90adf85b70ec998209b70c2db53760ce60..f26d67f198e86bd4d1d2074aa87658b3149217a3 100644 (file)
@@ -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();