Download the PHP package evista/pj-page-cache-red without Composer

On this page you can find all versions of the php package evista/pj-page-cache-red. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pj-page-cache-red

Redis Page Cache for WordPress

A Redis-backed full page caching plugin for WordPress, extremely flexible and fast. Requires a running Redis server, a Redis client package (currently only cheprasov/php-redis-client is supported), and Composer

Latest Version on Packagist Build Status Total Downloads

Requirements

Redis server:

This fork of the original package is being actively refactored to use a Redis package instead of the Redis PECL extension and to add some test coverage. My most important plan is to add an interface to hint the current dependency injection, and add more tests.

Make sure your Redis server has enough memory allocated to store your cached pages. The plugin compresses cached pages using gzip to lower memory usage. We recommend anywhere from 16 mb allocated just for page caching. Increase according to your hit-rate. We also recommend disabling flushing Redis cache to disk, and the allkeys-lru eviction policy to ensure the server can make more room for new cached pages by evicting older ones. Here is a sample extract from the redis.conf file:

Don't forget to restart the Redis server after making changes to the configuration file.

Installing the WordPress Plugin

Install the plugin via composer then activate it. It adds the advanced-cache.php file as a symlink into the wp-contents folder:

Enable page caching in your WordPress wp-config.php file with a constant:

Set up some important Redis options (both has defaults):

Try visiting your site in incognito mode or cURL, you should see an X-Pj-Cache- header:

That's it!

Purging Cache

By default, this plugin will expire posts (pages, cpt) whenever they are published or updated, including the front page and any RSS feeds. You may also choose to expire certain URLs or cache flags at certain other events. For example:

Wait, what the heck are flags?

Redis Page Cache stores a set of flags with each cached item. These flags allow the plugin to better target cached entries when flushing. For example, a single post can have multiple URLs (cache buckets, request variables, etc.) and thus, multiple cache keys:

These URLs will have unique cache keys and contents, but Redis Page Cache will flag them with a post ID, so you can easily purge all three items if you know the flag:

You can add your own custom flags to requests too:

Note that all the clear cache methods expire (but don't delete) cache by default. If you're running in an environment where background cache regeneration is available, an expired flag will cause that background regeneration while serving a stale copy to the visitor. If this is not the desired behavior, you can use the optional $expire argument in the clear cache methods (set to false) to force delete a flag/URL.

Support

If you need help installing and configuring this plugin, feel free to reach out to us via e-mail: [email protected].


All versions of pj-page-cache-red with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
johnpbloch/wordpress Version ^4.7
cheprasov/php-redis-client Version ^1.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package evista/pj-page-cache-red contains the following files

Loading the files please wait ....