Using Object Cache Pro’s
compression configuration options reduces Redis memory usage by 70-80% and greatly reduces network communication.
While that’s fantastic, setting up, enabling and changing serialization and compression requires some extra steps.
To use the
igbinary serializer, PHP must run the igbinary PHP extension and PhpRedis must be compiled with the
Using any of the compressions requires PhpRedis to be compiled with their correlated flags, such as
Changing serializer/compression #
Every time the
compression configuration option is changed, you must flush your entire Redis database to avoid corrupt data and crashing your site.
If you can afford downtime in your development or staging environment, just go ahead and change
compression option and run
In production environments that cannot afford downtime it’s recommended to:
- Disable the object cache:
wp redis disable
wp redis cliand then
- Re-enable the object cache:
wp redis enable