Filament Page Cache
Filament page to watch and control the laravel-page-cache full-page cache: hit ratio, flush everything, forget one URL, pause and resume.
#Filament Page Cache
A Filament page to watch and control the full-page cache of jeffersongoncalves/laravel-page-cache — no terminal, no deploy:
- Status, hit ratio, lifetime and last flush at a glance (live, the stats poll)
- Flush everything after a content change
- Forget one URL: every cached variant of a path (locales, themes, query strings) is rebuilt on its next visit
- Pause / resume the cache while you debug a page
#Compatibility
| Branch | Filament | Package version |
|---|---|---|
| 1.x | 3.x | ^1.0 |
| 2.x | 4.x | ^2.0 |
| 3.x | 5.x | ^3.0 |
#Installation
composer require jeffersongoncalves/filament-page-cache:"^3.0"
Set up laravel-page-cache first (the CachePublicPage middleware on your public routes). Hits and misses are counted while page-cache.stats is on (default).
#Usage
use JeffersonGoncalves\Filament\PageCache\PageCachePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ PageCachePlugin::make(), ]); }
The plugin adds a Page cache page to the panel's Settings group. Register it only on panels whose users may flush the cache.
#Requirements
- PHP 8.2 or higher
- Filament 5.x
- jeffersongoncalves/laravel-page-cache 1.2+
#Changelog
Please see CHANGELOG for more information on what has changed recently.
#Contributing
Please see CONTRIBUTING for details.
#Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
#Credits
#License
The MIT License (MIT). Please see License File for more information.