-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
(server tuning) Clarify opcache settings impact on occ maintenace:mode #10645
base: master
Are you sure you want to change the base?
(server tuning) Clarify opcache settings impact on occ maintenace:mode #10645
Conversation
…e and config.php Fixes nextcloud/server#37557 Fixes nextcloud/server#38872 Signed-off-by: Josh Richards <[email protected]>
I would probably phrase it differently, doing less changes but mostly add "and some In any case, we want this in older NC version docs as well. |
/backport to stable27 |
/backport to stable26 |
Thanks for your pull request 👍 We try to invalidate the cache when changing the configuration file.1 Afaik opcache is different for cli/web and therefor
I expect to run into the same issue (no changes without php-fpm restart) for occ app:install, oc app:update, occ app:remove, occ system:config:set and any other occ command altering php files. Footnotes |
Exactly, different PHP process (even different executable) means own OPcache. CLI should not have any OPcache at all, unless it has been manually explicitly enabled in PHP configs (not recommended). There is no way of accessing another PHP instance's OPcache, reasonably.
That would be great. But it needs to be somehow secured, of course no open web API. Some sort of flag in database or on filesystem wouldn't make sense either: If a flag needed to be checked on every web access/action, it would break the little performance benefit of disabling OPcache validation. So either there is a secure way to directly trigger it, or it better remains a documented limitation when disabling OPcache validation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this change in general. Maybe we could even add a warning to maintenance:mode command that if o opcache is enabled one might need to wait up to the revalidate_freq to make it visible in the web interface or restart php or the container. (Also just had this conversation with a user: nextcloud/all-in-one#3637
Another related issue (not sure why I didn't link this originally): #9184 |
…and config.php
Clarify impact of messing with
opcache.revalidate_freq
and/or disabling revaliation completely (i.e.opcache.validate_timestamps = 0
).☑️ Resolves
🖼️ Screenshots