Create a checksum of the config file in memory
This fixes a massive performance bug when opcache is enabled.
Signed-off-by: Mateus de Lima Oliveira [email protected]
As reference: https://github.com/nextcloud/server/pull/34099
Thanks for creating a new version of your pull request :+1:
Our usual workflow is that pull request target master as branch. If necessary a patch is backported to the stable* branches (if possible by a bot).
Please don't forget to add the logging output (as requsted in the old pull request) to figure out what the actual issue is. The configuration file is only rewritten (and the opcache cleared) when a change is detected:
https://github.com/nextcloud/server/blob/c2dafb099781a31745749ae399cf864b2a195000/lib/private/Config.php#L158-L164
@kesselb
The log is empty, Daniel.
Hey, when you change the target branch you may need to rebase your pull request. Right now all commits from stable24 which are not in master are also referenced.
@kesselb, I have no idea how to resolve those rebase conflicts.
It depends a bit on your local setup.
When people are working with a fork they usually add another remote "upstream".
git remote add upstream [email protected]:nextcloud/server.git
Then run git fetch upstream.
Afterwards rebase your local branch with the upstream changes git rebase -i upstream/master.
GitHub documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks
Any reason this PR is against stable24? Do we have a equivalent for master?
Closing the pull request due to inactivity.