Install
Works with Drupal: ^10.3 || ^11.4Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
First release of Redis RTT optimizer. It cuts the number of times a Drupal request waits for Redis, for deployments where the cache is a network hop away: reads Drupal issues one at a time are gathered into pipelines, compare-and-set protocols move into Lua, and render cache redirect chains are fetched in one go once their shape is known. Nothing is deferred: every write, delete and invalidation reaches Redis at the point the stock backend sends it.
Measured on warm, authenticated pages against the stock redis backend, on the code tagged here: a content listing goes from 166 round trips to 85-91, the node edit form from 61 to 31, a node view from 25 to 13. The saving is waiting on the network, so it grows with what a round trip costs; if your cache is on localhost, this module is not for you.
Requirements
- Drupal 10.3 or later, or 11.4 or later.
- Redis 2.x. A dependency's stability flag is not inherited, so ask for both:
composer require "drupal/redis:^2.0@alpha" "drupal/redis_rtt:^1.0@beta". - The phpredis extension, 5.3 or newer, for the
PhpRedisRttclient. The redis module's Predis client works without it, minus the two savings that depend on Lua. - APCu, strongly recommended.
Known limitations
- Beta. Everything is configured in
settings.php, and the settings may still change before a stable release. - It depends on redis 2.x, which has no stable release yet.
- Drupal 11.0 to 11.3 are not claimed. Core 11.2 added a cache tag preload of its own that collided with this module's until the module was changed to keep out of its way, and that fix was verified on 11.4.6.
- Drupal 12 is outside the declared range, and the test suite does not run on it yet.
- Not covered by Drupal's security advisory policy.
Installation, configuration, a staged rollout with measurement, and the way back out are in the README.