Skip to Content
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Sign in
  • Nederlands English (US) Español (AR)
  • Contact Us
  • Home
  • Blog
  • Jobs
  • Contact us
Cafayate.Net
  • 0
  • 0
    • Home
    • Blog
    • Jobs
    • Contact us
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Sign in
  • Contact Us

Using Redis for WordPress Object-Cache

  • All Blogs
  • Tech Blog
  • Using Redis for WordPress Object-Cache
  • March 5, 2021 by
    Administrator

    Redis Installation

    Add repo which maintains latest redis

    add-apt-repository ppa:chris-lea/redis-server

    Install redis-server and php-binding

    apt-get update
    apt-get install redis-server php5-redis

    WordPress Object Cache

    We are using this object-cache plugin – https://github.com/alleyinteractive/wp-redis

    cd /var/www/example.com/htdocs/wp-content
    wget https://raw.githubusercontent.com/alleyinteractive/wp-redis/master/object-cache.php
    chown www-data: object-cache.php

    WordPress Cache Salt/Prefix

    Useful if you have multiple WordPress.

    Inside wp-config.php

    define('WP_CACHE', true);
    define('WP_CACHE_KEY_SALT', 'example.com/subdir');

     

    Related: https://easyengine.io/tutorials/php/redis-php-sessions/

    in Tech Blog
    PHP Malware Finder

    Designed for companies

    We are a team of passionate people whose goal is to improve everyone's life through disruptive products. We build great products to solve your business problems. Our products are designed for small to medium size companies willing to optimize their performance.

    Get in touch

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Follow us
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)