-
Notifications
You must be signed in to change notification settings - Fork 24.4k
[5.8] Add underscores to cache and redis database prefixes #4986
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
Conversation
Adding an underscore to cache prefix will create keys like this: Also, why not |
@gerardnll We need to use a suffix that all potential cache systems definitely support. I would imagine underscore is far more supported than a colon may be, especially if you consider file system based caches. |
Thanks for merging @taylorotwell. 👍 |
@gerardnll I don't want to be that guy but as always: those files are editable by the dev-team after all, so it's up to them. The new part of this merge, and the previous one, is the exposure of the prefix option which is huge imo |
Yep, I'll just overwrite that config var.
Only Redis, Memcached, database and Dynamo and APC use prefixes. |
The cache one should not be appended with the underscore. Those keys are now:
|
Yes, that's what I was pointing out in my first comment... |
@DivineOmega was there a reason you changed the cache prefix config? |
@fitztrev I was not aware that the cache key prefix had a |
Ah, that makes sense. I wasn't aware the cache prefix was only applied to certain cache drivers.. |
Are you going to make another pull request to remove the underscore from config/cache.php or do I do it myself?
… El 10 abr 2019, a les 12:55, Jordan Hall ***@***.***> va escriure:
@gerardnll <https://github.com/gerardnll> We need to use a suffix that all potential cache systems definitely support. I would imagine underscore is far more supported than a colon may be, especially if you consider file system based caches.
Only Redis, Memcached, database and Dynamo and APC use prefixes.
Ah, that makes sense. I wasn't aware the cache prefix was only applied to certain cache drivers..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#4986 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB7K5gITtGfQ9TfnAwBuHYZpKYx9Z1XMks5vfcMUgaJpZM4chiJg>.
|
@gerardnll I'm on it. :) |
@fitztrev @gerardnll PR to remove the underscore from the cache prefix is here: #4987. |
I think |
This PR adds an additional underscore to the end of the generated cache prefix and redis database prefix.
Addresses the relevant points regarding poorly named keys, mentioned by @fitztrev @ludo237 @gerardnll in #4982.