Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance and complement OPcache setup checks #27403

Merged
merged 1 commit into from
Dec 20, 2021

Commits on Dec 19, 2021

  1. 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>
    MichaIng committed Dec 19, 2021
    Configuration menu
    Copy the full SHA
    82c1bea View commit details
    Browse the repository at this point in the history