Replies: 1 comment
-
|
Wondering if this was ever implemented. Seems wasteful if Laravel does its own serialization and then again with igbinary. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
11.x
PHP Version
8.1.3
Database Driver & Version
No response
Description
Illuminate/Cache/RedisStore use serialize when SERIALIZER_IGBINARY is enable.
This will result in two serializations, and it's unnecessary.
Worse still, we can’t benefit from igbinary, the data size is still the same as php serialize.
Why not just let PhpRedis do the serialize?
https://github.com/laravel/framework/blob/11.x/src/Illuminate/Cache/RedisStore.php#L423
There is two way to fix this problem
Steps To Reproduce
Beta Was this translation helpful? Give feedback.
All reactions