Download the PHP package devgeniem/wp-redis-group-cache without Composer

On this page you can find all versions of the php package devgeniem/wp-redis-group-cache. 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 wp-redis-group-cache

geniem-github-banner

WP Redis Group Cache

Latest Stable Version Total Downloads Latest Unstable Version License

This WordPress mu-plugin enables group caching for sites using the Redis Object Cache for WordPress dropin.

Installation

Install with composer:

OR add it into your composer.json:

Functionalities

Creating the cache group

Defining a group for WP Object Cache items enables simultaneous cache invalidation for a set of cache items. See the codex for further information on setting the group key. The following functions create the object cache functionality by hooking to the Redis Object Cache dropin:

add_to_group

This function is hooked to the cache setting with the wp_cache_set function. If a group key is set for wp_cache_set, the cache key is pushed into a Redis hash list mapped by the group key.

delete_from_group

This function is hooked to the cache deletion with the wp_cache_delete function. If a group key is set for wp_cache_delete, the specified item key is removed from the group list. This ensures the group only has keys that actually exist in the object cache.

Invalidating a cache group

delete_group

This function deletes all data related to a group key by first fetching all keys and deleting them from Redis and then deleting the Redis hash list of the group.

Usage:

Excluding custom or including default groups to caching

The Redis dropin automatically caches all data stored with WordPress Object Cache into Redis. If you want to modify which groups are stored you can use the two filters geniem/cache/no_group_cache/blacklist and geniem/cache/no_group_cache.

Modifying the blacklist

If you want to include some default groups like acf or transient or exclude custom ones for example from plugins that use it, you can use the geniem/cache/no_group_cache/blacklist filter to modify an array of blacklisted groups.

Exluded groups by default

classes/cache.php

More specific selection if a group should be excluded

You can do a more direct check if a group should be exluded by using the geniem/cache/no_group_cache filter. Note this is applied after the blacklist check, so if the group is already on the blacklist this will not be checked.

Note that this does not disable the initial key-value caching!

Example

See this Github gist for a usage example.

Maintainers

@villesiltala

License

GPLv3


All versions of wp-redis-group-cache with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
composer/installers Version >=1.0.12
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 devgeniem/wp-redis-group-cache contains the following files

Loading the files please wait ....