Skyline

Caching in Laravel

2 posts · Updated · Boring Observability

These posts come from running spatie/laravel-responsecache in front of a busy site, with Redis as the store.

One half of the problem is storage: a whole rendered page is a large Redis value, and predis, phpredis and the compression options behave differently at that size. The other half is the hit rate, which stays low for reasons that have nothing to do with Redis, like click ids in the URL giving every visitor their own cache key.