Title: Russian-Doll Caching in Laravel
Moocable is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Russian-Doll Caching in Laravel

via Laracasts

Description

Popularized in the Rails world, Russian Doll caching is an interesting approach, where you create nested fragment caches for your view logic. If you then link the keys for each of these cached items to the model's "updated at" timestamp, what you get is easy caching for your view logic, and automatic cachebusting whenever the model is updated. In this series, we'll build a custom package from scratch to offer this very functionality.



Exclusively Paid

1 hour 38 minutes

Russian-Doll Caching in Laravel

via Laracasts
Affiliate notice

Popularized in the Rails world, Russian Doll caching is an interesting approach, where you create nested fragment caches for your view logic. If you then link the keys for each of these cached items to the model's "updated at" timestamp, what you get is easy caching for your view logic, and automatic cachebusting whenever the model is updated. In this series, we'll build a custom package from scratch to offer this very functionality.