Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #27403

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 <[email protected]>
@backportbot-nextcloud backportbot-nextcloud bot added enhancement pending documentation This pull request needs an associated documentation update labels Dec 20, 2021
@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 23.0.1 milestone Dec 20, 2021
@skjnldsv skjnldsv mentioned this pull request Jan 7, 2022
6 tasks
@skjnldsv skjnldsv merged commit c8702c7 into stable23 Jan 7, 2022
@skjnldsv skjnldsv deleted the backport/27403/stable23 branch January 7, 2022 07:41
@skjnldsv skjnldsv added the 4. to release Ready to be released and/or waiting for tests to finish label Jan 7, 2022
@MichaIng
Copy link
Member

MichaIng commented Jan 7, 2022

Proposed documentation change: #7859

This was referenced Jan 20, 2022
@nickvergessen nickvergessen removed the pending documentation This pull request needs an associated documentation update label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants