As standard, Revive Adserver can use file based caching or memcached caching to speed up the delivery process. We have developed a plugin called “Redis Caching” that provides an even faster alternative, making use of the Redis storage technique. The Redis Caching plugin is available as a free plugin.
This page explains how to benefit from this plugin.
Install and configure Redis on all your servers being used for the ad server system. For best performance it is advisable to use the Redis PHP extension, which can be found in your package repo, or installed via “pecl install redis”.
Download Redis Caching plugin
The free Redis Caching plugin can be downloaded from our Github page for this project. Make sure to download the most recent version available.
This plugin contains the basic functionality to connect Revive Adserver to Redis. It is a zipped file, store it somewhere on your local disk, do not decompress it.
Install Redis Caching plugin
Follow the instructions to Install a plugin in Revive Adserver to install the Redis Caching plugin.
Configure Redis Caching plugin
With the Redis plugin installed, it needs to be configured with the correct settings for your server’s Redis installation. While still in the list of plugins, click the “details” link of the Redis Caching plugin, to bring up the configuration screen of the Redis Caching plugin.
Enter the values for your specific server. The values in the screenshot are just examples. Consult your server administrator for more details. Once all the values have been been entered, don’t forget to save the changes.
Enable Redis Caching
While still working as an administrator in Revive Adserver, go to the “Configuration” tab, and select the “Banner Delivery Settings”.
You will find a new option in the Banner Delivery Cache Store Type setting, select “Redis” and don’t forget to save the changes.
Note about Redis Caching and PHP7
Tests have shown that Revive Adserver’s file based caching is much faster on PHP7 than with earlier versions of PHP. As such, in almost all cases file based caching is actually faster than Redis Caching on PHP7. We recommend not enabling Redis Caching when your server runs PHP7 or to at least do some comparative testing to determine which of the two options is faster in your specific environment.
If you plan on using the Redis Logging plugin, the Redis Caching plugin must be installed, even though it doesn’t have to be enabled for Redis Logging to work correctly.