aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Controller/CheckSetupController.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-15 16:45:19 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-18 09:40:43 +0100
commit5ad549a72f54ce36bc9cb78e4dbdea657cfd3adf (patch)
treeadb2207f489e2d72a86e9ae70876cacf3f9ce852 /apps/settings/lib/Controller/CheckSetupController.php
parenta9ba1fe7e1bec82bd6c940743c7bacb6af4212ef (diff)
downloadnextcloud-server-5ad549a72f54ce36bc9cb78e4dbdea657cfd3adf.tar.gz
nextcloud-server-5ad549a72f54ce36bc9cb78e4dbdea657cfd3adf.zip
Migrate memcached PHP module setup check to new API
Merged it with the other existing memcache setup check as it fits Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/lib/Controller/CheckSetupController.php')
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index 8897548a977..c94bc56c4ba 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -124,24 +124,6 @@ class CheckSetupController extends Controller {
}
/**
- * Checks if the correct memcache module for PHP is installed. Only
- * fails if memcached is configured and the working module is not installed.
- *
- * @return bool
- */
- private function isCorrectMemcachedPHPModuleInstalled() {
- $memcacheDistributedClass = $this->config->getSystemValue('memcache.distributed', null);
- if ($memcacheDistributedClass === null || ltrim($memcacheDistributedClass, '\\') !== \OC\Memcache\Memcached::class) {
- return true;
- }
-
- // there are two different memcache modules for PHP
- // we only support memcached and not memcache
- // https://code.google.com/p/memcached/wiki/PHPClientComparison
- return !(!extension_loaded('memcached') && extension_loaded('memcache'));
- }
-
- /**
* Checks if set_time_limit is not disabled.
*
* @return bool
@@ -293,7 +275,6 @@ Raw output
[
'isFairUseOfFreePushService' => $this->isFairUseOfFreePushService(),
'reverseProxyDocs' => $this->urlGenerator->linkToDocs('admin-reverse-proxy'),
- 'isCorrectMemcachedPHPModuleInstalled' => $this->isCorrectMemcachedPHPModuleInstalled(),
'isSettimelimitAvailable' => $this->isSettimelimitAvailable(),
'areWebauthnExtensionsEnabled' => $this->areWebauthnExtensionsEnabled(),
'isMysqlUsedWithoutUTF8MB4' => $this->isMysqlUsedWithoutUTF8MB4(),