Disable Redis Persistence

If you read our previous article Cache WordPress Using Redis, then you know that we are using Redis as a full page cache for this site. With that said, we are extremely happy with the results however we have noticed over time that we were having slow response times occasionally. After researching the issue a bit and a little trial and error, we determined that the issue was related to Redis. As it turns out, we were allowing a Redis data to persist between reboots. For certain applications that may be good, but after reading this, we realized that when Redis would write data to the disk, it was causing slow response times. Ok, now we know the problem so how to we fix it. The fix was simple, al wee needed to do was run the command below to disable Redis Persistence.

After running the above command you will have disabled Redis Persistence and all data will now be kept in memory.

Did you find this article useful? Why not share it with your friends?

Leave a Reply

Your email address will not be published. Required fields are marked *