spatie/laravel-partialcache
Abandoned package that adds a Blade @cache directive to cache rendered partial HTML in Laravel (5.1+). Supports passing view data, setting cache duration, custom keys, and cache tags, with optional facade/config publishing.
@cache directive or modern packages (e.g., laravel-view-cache).@cache directive or view:cache Artisan command instead (simpler, actively maintained).For Executives: "This package lets us cache reusable UI components (like headers or sidebars) in Laravel, slashing server load and speeding up page renders—critical for scaling our high-traffic features. It’s a lightweight, MIT-licensed solution that avoids custom dev work, though we’d need to monitor for updates or fork it long-term."
For Engineering:
"Spatie’s laravel-partialcache offers a Blade directive (@partialCache) to cache rendered partials, reducing redundant rendering. It’s simple to integrate (Composer install + config) and works for static partials. Warning: Abandoned—we’d need to either fork it or replace it post-launch. Best for quick wins on legacy Laravel 5.x projects."
How can I help you explore Laravel packages today?