How To Use Redis

Share on facebook
Share on twitter
Share on reddit
Share on linkedin
Share on pinterest
Share on email
QuestionsCategory: General QuestionsHow To Use Redis
S
Scott Gingrich
asked 3 months ago

Hi Adam,

In your YouTube video talking compairing the speed of Astra, Ocean, et al, you mentioned Redis being part of your performance stack.

Can you share any advice/experiences using it?

Thanks,

Scott

2 Answers
Adam @ WPCrafter Staff answered 3 weeks ago

Redis is one thing I have been wanting to make a video on.

It's super easy to implement (depending on your hosting company).

For Cloudways, it's super easy to implement. But for shared hosting providers or managed WordPress hosting, you don't get options for it. WordPress is slow at times because its always retrieving data from a database. Redis reduces this by storing that data in memory. It delivers a huge speed boost.

How to implement on Cloudways

– Turn the feature on in your Cloudways control panel

– Install the official Redis plugin on your WordPress website

– There is a small bit of code you need to add to your wp-config file

/**#@+
* Authentication Unique Keys and Salts.
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
*/
define(‘WP_CACHE_KEY_SALT', ‘wordpress-2740-16429-51402.cloudwaysapps.com');
define(‘WP_CACHE', true);
require(‘wp-salt.php');

S
Scott Gingrich
answered 3 weeks ago

Thanks Adam. I'm giving Redis serious consideration to add to my dedicated server. 
Scott

Adam @ WPCrafter Staff replied 3 weeks ago

Nothing beats it. For me, it’s a must-have. Server-side caching will always deliver better results.