FeatureFuel
0

Make "The PHP OPcache is not properly configured" a little bit more tolerant and precise (Suggestion)

Source: nextcloud/server#27094 · opened by @Linuxfabrik
Related Code: apps/settings/lib/Controller/CheckSetupController.php: protected function isOpcacheProperlySetup() Related Doc: --- After monitoring our OpCaches, the function isOpcacheProperlySetup() should be a bit more tolerant and precise. These are our suggestions: max_accelerated_files According to php.net: > The maximum number of keys (and therefore scripts) in the OPcache hash table. The actual value used will be the first number in the set of prime numbers { 223, 463, 983, 1979, 3907, 7963, 16229, 32531, 65407, 130987, 262237, 524521, 1048793 } that is greater than or equal to the configured value. The minimum value is 200. The maximum value is 1000000. Values outside of this range are clamped to the permissible range. Means: As long as Nextcloud consists of fewer than 16229 files, check on if ($this->iniGetWrapper->getNumeric('opcache.max_accelerated_files') <= 7963) (some Admins like to configure the precise values, and 10000 is as good …

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests