Skip to content

[Cache] give control over cache prefix seed #35890

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
Sep 2, 2020
Merged

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Feb 27, 2020

Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

Reopened #35723 for master.

The configurable cache prefix seed does not give full control over the cache prefix because the container class is added to the prefix in any case. This is a problem because the container class contains the app env name. We use different app environments for different deployment targets (dev and test). We want dev and test to use the same redis cache. But this is impossible to achieve because even setting the cache prefix seed does not accomplish this.

@Tobion
Copy link
Contributor Author

Tobion commented Feb 27, 2020

Will update the recipe as pointed out in #35723 (comment) when merged.

@Tobion Tobion added this to the next milestone Feb 27, 2020
@Tobion
Copy link
Contributor Author

Tobion commented Mar 2, 2020

tests should pass when merged

@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
@xabbuh xabbuh modified the milestones: 5.1, next May 5, 2020
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me.
Can you please rebase for 5.2?
can you please also send a PR to the 5.2 recipe to include the env by default in the suggested seed?

@fabpot
Copy link
Member

fabpot commented Sep 1, 2020

@Tobion @nicolas-grekas Can we finish this PR? Thank you.

The configurable cache prefix seed does not give full control over the cache prefix because the container class is added to the prefix in any case. This is a problem because the container class contains the app env name. We use different app environments for different deployment targets (dev and test). Dev and test should use the same redis cache. But this is impossible to achieve because even setting the cache prefix seed does not accomplish this.
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me. I just rebased the PR.

@fabpot
Copy link
Member

fabpot commented Sep 2, 2020

Thank you @Tobion.

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.

5 participants