Skip to content

Commit

Permalink
Merge pull request #36731 from nextcloud/backport/35365/stable25
Browse files Browse the repository at this point in the history
[stable25] Check for opcache.file_cache_only=1
  • Loading branch information
MichaIng authored Feb 24, 2023
2 parents 6245e56 + 9f5eea7 commit 2ed9f14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/settings/lib/Controller/CheckSetupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ protected function getOpcacheSetupRecommendations(): array {
}
} 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');
Expand Down

0 comments on commit 2ed9f14

Please sign in to comment.