twig/cache-extra
Twig Cache Extension integrates the Symfony Cache component into Twig, adding a single cache tag that lets you cache template fragments directly in your templates for faster rendering.
@cache and cache()->remember().symfony/cache, needs fragment caching directly in Twig templates, and wants tag/TTL-based invalidation without writing a custom extension.{% cache %} tag backed by Symfony Cache. In Laravel we would need a service provider binding, an adapter mapping to Laravel’s cache drivers, and clear key/TTL/tag-invalidation conventions. It is best for Twig partials with expensive queries or API calls; fallback remains Blade @cache or cache()->remember(). Main risks are duplicate cache infrastructure and low upstream adoption, so scope it narrowly and benchmark before rollout.”How can I help you explore Laravel packages today?