Redis Object Cache Pro vs Relay PHP Extension for LMS Offloading
Benchmark 42% PhpRedis, 64% Object Cache Pro, and 78% Relay SQL query offloading across LearnDash quiz loads and BuddyBoss dashboards.
42% PhpRedis | 64% OC Pro | 78% Relay SQL Offload
Why Standard PhpRedis Still Pays Unix Socket Latency
WordPress LMS pages trigger hundreds of get_option, wp_usermeta, and ld_get_course_steps calls per render. Standard PhpRedis over a Unix socket offloads roughly 40-44% of database time, but each get_cache() call still serializes PHP arrays and round-trips to the Redis daemon.
Object Cache Pro (igbinary + zstd) vs Relay In-Worker L1
Object Cache Pro cuts payload size with igbinary + zstd and groups multi-key fetches, lifting offload efficiency to 62-66% and trimming PHP execution from ~240 ms to ~165 ms. Relay embeds an in-memory L1 cache directly inside PHP-FPM shared memory, pushing effective offloading to 74-78% and cutting required PHP workers by roughly 38%.
Measured Thresholds & Configuration Targets
| Object Cache Layer | Query Offload % | Avg PHP Time | Workers for 100 Takers |
|---|---|---|---|
| None (MariaDB Only) | 0% | 390 ms | 28 - 34 Workers |
| PhpRedis Unix Socket | 42% | 240 ms | 18 - 22 Workers |
| Object Cache Pro | 64% | 165 ms | 12 - 15 Workers |
| Relay PHP Extension | 78% | 115 ms | 9 - 11 Workers |