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

Defer cache directory creation until it's needed #8789

Merged
merged 2 commits into from Nov 30, 2022

Conversation

weirdan
Copy link
Collaborator

@weirdan weirdan commented Nov 29, 2022

Honestly, this is a bit of a hack, as we let Config to generate the
cache directory name and then reset it to null from the cli entrypoint.
Yet it's easier than passing a no-cache flag through so many layers of
static calls.

$this->cache_directory_initialized flag is used to make sure we
attempt to create the directory only once.

Fixes #4267

Honestly, this is a bit of a hack, as we let `Config` to generate the
cache directory name and then reset it to null from the cli entrypoint.
Yet it's easier than passing a no-cache flag through so many layers of
static calls.

`$this->cache_directory_initialized` flag is used to make sure we
attempt to create the directory only once.

Fixes vimeo#4267
@weirdan weirdan added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 29, 2022
@weirdan weirdan added the release:deprecation The PR will be included in 'Deprecated' section of the release notes label Nov 30, 2022
@weirdan weirdan merged commit 870f581 into vimeo:master Nov 30, 2022
@weirdan weirdan deleted the defer-cache-directory-creation branch November 30, 2022 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:deprecation The PR will be included in 'Deprecated' section of the release notes release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running psalm with --no-cache tries to create cache directory
1 participant