How to Enable Redis Object Cache for WordPress Website | Scribe

    How to Enable Redis Object Cache for WordPress Website

    • Middlehost Inc |
    • 0 step |
    • 6 minutes
      Login to your cPanel
      Click "Redis Cache Control"
      Click "Start Redis"
      Login to your Wordpress Admin Dashboard
      Click "Add New Plugin"
      Double-click the "Search Plugins" field and type "redis object cache"
      Install Redis Object Cache plugin
      Click "Activate"
      Click here.
      Click "File Manager"
      Navigate to your wordpress installation directory.
      Edit wp-config.php file
      Click "Edit"
      Click here.
      Paste following right after <?php line.\ \ define( 'WP_REDIS_PATH', '' );\ define('WP_REDIS_PASSWORD',''); // change the prefix and database for each site to avoid cache data collisions\ define( 'WP_REDIS_PREFIX', 'my_first_site' );\ define( 'WP_REDIS_DATABASE', 0 ); // 0-15\ // reasonable connection and read+write timeouts\ define( 'WP_REDIS_TIMEOUT', 1 );\ define( 'WP_REDIS_READ_TIMEOUT', 1 );\ define( 'WP_REDIS_SCHEME', 'unix' );
      Click "Redis Cache Control"
      Select and copy Redis Socket address. Eg: "/home/cruxhttpnoc/redis.sock" in this demo
      Paste the socket path in WP_REDIS_PATH Consttant in empty quotes
      Copy Redis Password
      Paste password in WP_REDIS_PASSWORD constant.

      Want to make guides like this in seconds? Yes, it's really that fast.

      This Scribe is in tip-top shape!Leave feedback if there are any issues with this Scribe