Skip to content

Commit 43f0944

Browse files
authored
Merge pull request #36732 from nextcloud/backport/35365/stable24
[stable24] Check for opcache.file_cache_only=1
2 parents a420cb9 + ceab09e commit 43f0944

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/settings/lib/Controller/CheckSetupController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ protected function getOpcacheSetupRecommendations(): array {
499499
}
500500
} elseif (!$isPermitted) {
501501
$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.');
502+
} elseif ($this->iniGetWrapper->getBool('opcache.file_cache_only')) {
503+
$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.');
502504
} else {
503505
// Check whether opcache_get_status has been explicitly disabled an in case skip usage based checks
504506
$disabledFunctions = $this->iniGetWrapper->getString('disable_functions');

0 commit comments

Comments
 (0)