-
Notifications
You must be signed in to change notification settings - Fork 143
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
diffiniate empty cache entry and non-existing cache entry #176
Comments
So if you save an empty string you get false? Seems that could be an issue with save then rather than load? |
@colinmollenhour no, saving return true as expected. It should be an issue with load |
I did not state my question well.. I meant, if you save an empty string and then load that key, you get false? Please provide steps to produce, expected result and actual result for clarity. |
Yes, exactly, this is used and tested in a context of Magento 2 project. |
My system is messed up at the moment.. as a workaround you could use the |
Thanks, currently I can avoid using empty block or empty cache on the project. I just wanted to report the bug because in some cases, it can cause performance or other issues. |
Cm_Cache_Backend_Redis/Cm/Cache/Backend/Redis.php
Line 513 in 3fc3e91
Look like if we save a cache entry with empty content then when we load, it is treated as non-existing cache entry so this makes some wrong logic in application usages. It would be considered as a bug or we can't do anything in this case? @colinmollenhour
The text was updated successfully, but these errors were encountered: