nextcloud/apps/settings/tests/Controller
MichaIng 82c1beaacb Enhance and complement OPcache setup checks
The current OPcache recommendations match the PHP defaults, but the values are much higher than required to run Nextcloud, even with a high number of installed apps. On the other hand, when other applications use the same OPcache instance, the recommended values might not be sufficient. Accurate recommendations need to take into account actual OPcache usage.

With this commit, recommendations are shown to raise the config value if more than 90% of max cache size or number of keys is used.

The checks whether the module is loaded and whether the OPcache is properly configured have been merged into a single function. This allowed to reduce the overhead of OPcache configuration checks when the module is not loaded.

A check has been added whether Nextcloud is permitted to use the OPcache API. Without this, inconsistencies during core or app upgrades may cause errors and OPcache usage cannot be determined for the new usage based checks.

OPcache usage based checks are skipped when Nextcloud is not permitted to use the API.

Signed-off-by: MichaIng <micha@dietpi.com>
2021-12-19 23:38:21 +01:00
..
AdminSettingsControllerTest.php Add admin privilege delegation for admin settings 2021-09-29 21:43:31 +02:00
AppSettingsControllerTest.php fix appstoreenabled check in Fetcher so it's coherent with AppSettingsController 2021-10-18 12:39:43 +02:00
AuthSettingsControllerTest.php More test fixing 2021-12-01 22:17:19 +01:00
CheckSetupControllerTest.php Enhance and complement OPcache setup checks 2021-12-19 23:38:21 +01:00
DelegationControllerTest.php Add admin privilege delegation for admin settings 2021-09-29 21:43:31 +02:00
MailSettingsControllerTest.php Update php licenses 2021-06-04 22:02:41 +02:00
TwoFactorSettingsControllerTest.php Update php licenses 2021-06-04 22:02:41 +02:00
UsersControllerTest.php use specific email getter where necessary 2021-09-09 19:23:05 +02:00