Cache Catch
Cache Catch
@CacheCatch

This week in caching: OPcache preloading, real deltas

This week in caching: OPcache preloading, real deltas

Preloading (PHP 7.4+) loads classes into shared memory at startup. The numbers:

— Laravel API — a preload script for the framework's hot classes cut cold-request bootstrap by ~30%; the first request after FPM restart no longer paid the full autoload tax.
— Symfony app — using the framework-generated preload file dropped p99 latency under load by ~15% because hot paths were already in memory.
— WordPress — preloading wp-includes core files trimmed CPU per request on a busy host, freeing headroom that delayed a server upgrade by months.

The caveat: preloaded files require an FPM restart to update, so wire it into deploy. Skip if you deploy hourly and can't restart.

Bookmark: opcache.preload + opcache_get_status()['preload_statistics'] — confirm classes actually loaded.
Этот пост опубликован в Telegram-канале Cache Catch. Подписаться можно по ссылке: @CacheCatch.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

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

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

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