You can also activate Redis Cache on your WordPress blog hosted on Cloudforspeed.com.
Redis is a caching mechanism to reduce the number of requests to the database. In more technical words, Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker (Redis.io). It supports various data structures such as Strings, Hashes, Lists, Sets etc.
Why should I use Redis?
It is blazingly fast! After all, it has been written in C.
It’s a NoSql Database. That’s Amazingly amazing!
It is being used by tech-giants like GitHub,Weibo, Pinterest, Snapchat, Craigslist, Digg, StackOverflow, Flickr.
In order to save your cloud database calls and eventually saving some dollars out there, you can of course opt for caching so the Redis.
It is Developer friendly and by that I mean to say that Redis is being supported in most of the languages (Perks of using an Open Source Technology). Languages like JavaScript, Java, Go, C, C++, C#, Python, Objective-C, PHP and almost every famous language out there has support for this.
Lastly, it is open source and stable, so yeah that’s another thing to say ‘Yes’ to Redis.
Need more reasons? Check this.
How Does Redis Caching Work?
When a user requests a WordPress page for the first time, a MySQL query is performed on the server. Redis caches this query, so when another user requests the same WordPress page, the results are provided from Redis without the need to query the database again.
If the query is not cached in Redis, the results are provided by MySQL, which are then added to the Redis cache.
If a particular value is updated in the database, the corresponding Redis value is invalidated to prevent bad cache data from being served to the user.
Redis Performance?
How fast is fast?
The best rival to Redis is Memcached. A test by ITCooking.com proves Redis outperform Memcached greatly.
Whether you use WordPress or a custom development, Redis is the way to go for object caching. It’s well maintained, secure, free, and it benefits from a large community of users.
Combine Redis with LiteSpeed Cache and you’ll get that blazing fast performance.
How to Use Redis Cache on My WordPress Blog?
Luckily, your super cheap hosting account on CLOUDFORSPEED comes with Redis Cache technology (plus the LiteSpeed Cache). You just need to enable it via WordPress Dashboard.
Follow these steps:
1. Login to your WordPress Dashboard.
2. Click Settings in the LiteSpeed Cache menu.
If you installed WordPress using the One-click Installer provided in the control panel, LSCache Plugin is already installed by default. Otherwise, you may need to install the plugin at first.
Check also: How to configure LSCache on WordPress.
3. Make sure the plugin is Enabled.
4. Click the Show Advanced Options menu.
5. Click the Advanced tab.
6. Turn ON the Object Cache option.
7. Click Redis. Leave all other options default. You may notice the Connection Test is Not Available but it’s normal.
8. Click the Save Changes button in the bottom.
That’s all. You can see now the Connection Test: Passed. This indicates the connection between your WordPress blog to the Redis server in the backend is successful.
Simple and easy isn’t it?
Give it a test!
You can test how fast your WordPress site now using GTMetrix service. It is a tool for to easily determine the performance of a website. The basic version of GTmetrix is completely free and you can gain access to a number of options simply by signing up for an account.
GTmetrix is a free tool that analyzes your page’s speed performance. Using PageSpeed and YSlow, GTmetrix generates scores for your pages.
We tested our dummy blog in GTMetrix performance test. This blog uses standard WordPress install with LiteSpeed Cache and Redis Cache enabled.
Here’s the result.