Browse Source

Merge pull request #36278 from nextcloud/fix/opcache/check

Fix interned strings buffer check if 0 free bytes
tags/v26.0.0beta1
MichaIng 1 year ago
parent
commit
279c7d18ef
No account linked to committer's email address
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      apps/settings/lib/Controller/CheckSetupController.php

+ 4
- 4
apps/settings/lib/Controller/CheckSetupController.php View File

@@ -524,11 +524,11 @@ Raw output
}

if (
empty($status['interned_strings_usage']['free_memory']) ||
// Do not recommend to raise the interned strings buffer size above a quarter of the total OPcache size
($this->iniGetWrapper->getNumeric('opcache.interned_strings_buffer') < $this->iniGetWrapper->getNumeric('opcache.memory_consumption') / 4) &&
(
($status['interned_strings_usage']['used_memory'] / $status['interned_strings_usage']['free_memory'] > 9) &&
// Do not recommend to raise the interned strings buffer size above a quarter of the total OPcache size
($this->iniGetWrapper->getNumeric('opcache.interned_strings_buffer') < $this->iniGetWrapper->getNumeric('opcache.memory_consumption') / 4)
empty($status['interned_strings_usage']['free_memory']) ||
($status['interned_strings_usage']['used_memory'] / $status['interned_strings_usage']['free_memory'] > 9)
)
) {
$recommendations[] = $this->l10n->t('The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply <code>opcache.interned_strings_buffer</code> to your PHP configuration with a value higher than <code>%s</code>.', [($this->iniGetWrapper->getNumeric('opcache.interned_strings_buffer') ?: 'currently')]);

Loading…
Cancel
Save