diff options
author | MichaIng <micha@dietpi.com> | 2023-02-15 19:40:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 19:40:37 +0100 |
commit | b36a31c918ad997e6d227dc7923791c487e18e51 (patch) | |
tree | f5a0c617217c223444d811d5ff31123bdfc62f87 /apps/settings | |
parent | 364e7693b9ee91ee169fa039244b3f010f76c035 (diff) | |
parent | 7e725c5d9402de8bbf997ebaf0f8ab2bd9f1287e (diff) | |
download | nextcloud-server-b36a31c918ad997e6d227dc7923791c487e18e51.tar.gz nextcloud-server-b36a31c918ad997e6d227dc7923791c487e18e51.zip |
Merge pull request #35365 from nextcloud/enh/check-opcache-file_cache_only
Check for opcache.file_cache_only=1
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index a5c158d2602..a6f4d7a0d41 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -499,6 +499,8 @@ Raw output } } elseif (!$isPermitted) { $recommendations[] = $this->l10n->t('Nextcloud is not allowed to use the OPcache API. It is highly recommended to include all Nextcloud directories with <code>opcache.restrict_api</code> or unset this setting to disable OPcache API restrictions, to prevent errors during Nextcloud core or app upgrades.'); + } elseif ($this->iniGetWrapper->getBool('opcache.file_cache_only')) { + $recommendations[] = $this->l10n->t('The shared memory based OPcache is disabled. For better performance, it is recommended to apply <code>opcache.file_cache_only=0</code> to your PHP configuration and use the file cache as second level cache only.'); } else { // Check whether opcache_get_status has been explicitly disabled an in case skip usage based checks $disabledFunctions = $this->iniGetWrapper->getString('disable_functions'); |