Tangible Bytes

A Web Developer’s Blog

Laravel Redis Route Binding

I setup Laravel with Redis and made sure all my articles were cached, and still saw a lot of database traffic.

All the route bound parameters get magically injected - but of course behind the scenes these are looked up in the database.

Although these are simple queries that run pretty fast - a lof of them are repeated very frequently so can be efficiently cached.

Read more ...