Download the PHP package egamipeaks/pizzazz without Composer
On this page you can find all versions of the php package egamipeaks/pizzazz. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download egamipeaks/pizzazz
More information about egamipeaks/pizzazz
Files in egamipeaks/pizzazz
Package pizzazz
Short Description Laravel page caching
License MIT
Homepage https://github.com/egamipeaks/pizzazz
Informations about the package pizzazz
Laravel page caching
Pizzazz is a Laravel page caching package that provides intelligent, full-page HTTP caching for your Laravel applications. It automatically caches GET requests and serves cached responses with configurable cache invalidation, query parameter filtering, and authentication-aware caching.
The package includes middleware for automatic caching, cache flushing utilities, and comprehensive logging to help you optimize your application's performance.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Basic Setup
After installation, add the page cache middleware to your routes or route groups:
Or register the middleware globally in app/Http/Kernel.php
:
Configuration
Configure caching behavior in your .env
file:
Advanced Usage
Programmatic Cache Control
Cache Flushing
Using Artisan Command
Clear all page cache using the built-in artisan command:
Programmatically
Custom Query Parameters
Configure which query parameters should prevent caching:
Or specify required query parameters to include in cache keys:
How It Works
- Automatic Caching: The middleware automatically caches GET requests that return 200 responses
- Cache Keys: Pages are cached using URL-based keys with optional query parameter filtering
- Cache Headers: Cached responses include
X-Cache: HIT
header anddata-cached="true"
attribute on the body tag - Smart Filtering: Automatically skips caching for:
- Non-GET requests
- Authenticated users (unless configured otherwise)
- Requests with disallowed query parameters
- Responses shorter than the minimum content length
- Non-200 HTTP responses
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of pizzazz with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0