Giter VIP home page Giter VIP logo

wpr-redis's Introduction

WPR-Redis

This plugin enables WP Rocket to store its generated cache files in the Redis database instead of the default filesystem storage.

Requirements

  • WP Rocket WordPress Plugin (tested up to v3.5.5.1)
  • Redis Server
  • PHP 7+

Constant Configuration

You may use the following constants to configure the plugin. All constants will take preference over the defined settings if there are any.

  • WPR_REDIS_SCHEME Needs to be set to unix to use a unix socket to connect.
  • WPR_REDIS_HOST For TCP connections this will be the IP or hostname of the server. If you are using a socket connection this will be the socket path. Default: localhost
  • WPR_REDIS_PORT Port to connect to the server using TCP. Default 6379
  • WPR_REDIS_DB The Database to be used. Default 0
  • WPR_REDIS_PWD Redis server password if needed.
  • WPR_REDIS_SALT If set all stored keys will be prefixed by this salt. To further differentiate all keys will pre prefixed by their respective database table prefix as well.

Known Issues

  • Connection to any kind of Redis cluster is currently not supported
  • If you are using nginx and if you can alter its configuration the Rocket-Nginx configuration seems to be faster than this (tested using a NVME SSD equipped server)

Disclaimer

This plugin uses WP Rocket's namespacing to alter its file modification functions as well as WP Rockets advanced-cache.php file content filter to register itself. Any API changes from the side of WP Rocket might break this plugin's functionality so please report any issues you might have in the GitHub issue tracker.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.