Cache benchmarking in Elgg (Redis vs Files vs QueryCache)
- Tunable settings:
- Payload: 1 / 10 / 50 / 100 KB
- Iterations: 1K–100K
- Checkbox “Disable static item caching” for a fair backend-only benchmark.
- Automatic checks:
- Redis:
redis_servers,RedisPHP extension,$CONFIG->redisflag. - Files: presence of
cacheroot / datarootand write permissions.
- Precise results table like:
Backend Payload Iterations Time,s Avg,ms Ops/sec Redis 10 KB 20000 0.0123 0.615 16260 Files 10 KB 20000 0.0456 2.280 4386
- Static caching toggle:
- Enabled (default): you mainly see Phpfastcache RAM layer.
- Disabled: you measure raw backend performance (disk vs Redis).
Open /admin/server/cache_bench and you have a ready-to-use benchmark page integrated into Elgg admin.