Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

TTFB 680ms -> 180ms by enabling OPcache

A CMS recompiled every PHP file on every request — OPcache was off on the production server.
— Profiled: 410ms of the 680ms TTFB was opcode compilation, not application logic.
— Enabled OPcache, set validate_timestamps=0, preloaded the framework.
Compile time per request: 410ms | 0ms
p75 TTFB: 680 | 180
Server CPU at peak: -38%
Takeaway: 410ms per request was the engine recompiling code that never changed.
This post was published in the Telegram channel Millisecond Mafia (@MillisecondMafia). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.