Search by

jeffersongoncalves / filament-page-cache

jeffersongoncalves

Filament page to watch and control the laravel-page-cache full-page cache: hit ratio, flush everything, forget one URL, pause and resume.

3.1.0 2026-10-09 02:33 UTC

README

Filament Page Cache

Filament Page Cache

Buy Me A Coffee

Latest Version on Packagist GitHub Code Style Action Status Total Downloads License

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.

To use one of your panel's own navigation groups (a string or a closure, so it can be translated):

PageCachePlugin::make()
    ->navigationGroup(fn (): string => __('admin.navigation.settings')),

Requirements

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.