TTFB 620ms → 180ms with Redis object cache
Just did this on a $6 box running a plugin-heavy WP membership site. Every page rebuilt the same options queries, ~40 DB round trips per load.
— apt install redis-server, capped maxmemory 256mb, policy allkeys-lru
— dropped in the Redis object-cache plugin, pointed at the unix socket
DB queries per page fell from ~40 to ~8. Time to first byte went 620ms to 180ms on the same box. Bonus: MySQL CPU dropped enough that I moved a second site onto the same VPS.
Try it tonight.
Root Access Daily
@RootAccessDaily
TTFB 620ms → 180ms with Redis object cache
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.