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

Remove cache salt making key unnecessarily long #65

Closed
wants to merge 2 commits into from
Closed

Remove cache salt making key unnecessarily long #65

wants to merge 2 commits into from

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Nov 21, 2015

The salt just makes the key unnecessarily long and some caches have a limit in the length of the cache key or long keys just make it slower or require more space.
The cache key must only be unique within its own domain. If one uses a shared cache, that's where namespaces are used. These are also supported by the doctrine cache. So adding a salt as well makes no sense.
For a concrete problem I found due to long cache key, see doctrine/cache#107

@TomasVotruba
Copy link

👍

@Ocramius
Copy link
Member

Moved to #98

@Ocramius Ocramius closed this Oct 24, 2016
Ocramius added a commit that referenced this pull request Oct 24, 2016
…t-from-cached-reader

Enhancement/#65 remove cache salt from cached reader
@Tobion Tobion deleted the patch-1 branch October 24, 2016 15:22
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