How to Install Redis Object Caching on WordPress

Prerequisites

  1. Set Up Server Monitoring with New Relic
  2. Benchmark performance under load without caching
  3. Install the latest version of Redis and verify it is working

Allocate Memory to Redis and Configure an Eviction policy

sudo nano /etc/redis/redis.conf
maxmemory 128mb
maxmemory-policy allkeys-lfu
sudo service redis-server restart
sudo service php7.0-fpm restart

Enable cache settings in wp-config.php

sudo nano /var/www/html/wp-config.php
define( 'WP_CACHE_KEY_SALT', 'an-example-domain.com' );
define( 'WP_CACHE', true );

Install a Redis Object Cache Plugin

Related Blog Posts

Installation of LibreNMS on Ubuntu

Install Craft CMS on a LEMP Stack on Alibaba Cloud

Related Market Products

Wordpress on LAMP Ubuntu 14.04 64bits powered by IGS

Related Documentation

PHP_ memcached

Features

Related Products

ApsaraDB for Redis

ApsaraDB for Memcache

Related Course

Alibaba Cloud Elastic Architecture and Case Study

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Recipe: Persistent storage in flutter (1 min)

How to configure HA in VMware vSphere to set up this feature in your virtualized environment

A comparison of historical variable borrow rates for USDC on Aave

10 Best MATLAB Tutorials for Beginners [2022 May]— Learn MATLAB Online

Kubernetes + OpenFaaS + runV + ARM64 Packet.net

Tendermint to Delegate 595,000 ATOMs to Persistence’s AUDIT.one

Our house in the middle of the street

Observability Vs. Monitoring: Why a Developer needs Both

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

Multi-architecture container images for Amazon ECR

Securely Connect to Redis and Utilize Benchmark Tools

Pass Environment variables to a NodeJS Project & deploy docker image to Kubernetes

Deploy Standalone (Single Node) MinIO server using Docker Compose on Linux