Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Cache] disable lock on CLI #44669

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

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations?
Tickets Fix #41130
License MIT
Doc PR -

I thought using semaphores would fix the linked issue but I'm proposing to revert them in #44667

Instead, I think we should disable the lock on CLI processes.

The purpose of having locks enabled by default is to prevent cache stamped at deploy time. Disabling the lock on CLI still provides this protection on eg FPM.

For ppl that really want a lock between eg crons and FPM, the lock component should be used instead.

@stof
Copy link
Member

stof commented Dec 16, 2021

The issue was talking about problems happening in Apache, so I doubt that disabling it only on CLI will fix it.

@nicolas-grekas
Copy link
Member Author

It was about apache calling commands in a subprocess, isn't it?

@stof
Copy link
Member

stof commented Dec 16, 2021

#41130 (comment) should be checked, as it talks about nested caching in parallell requests

@nicolas-grekas
Copy link
Member Author

Calling LockRegistry::setFiles([]) will work for these cases.

@nicolas-grekas nicolas-grekas merged commit 311dc83 into symfony:4.4 Dec 16, 2021
@nicolas-grekas nicolas-grekas deleted the cache-no-lock-on-cli branch December 16, 2021 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.