vnclone / laravel-static-html-cache
store/cache generated responses as a static file
dev-master
2017-06-22 23:18 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2024-11-15 21:08:16 UTC
README
store/cache generated responses as a static file
Setup
Add the service provider to the config/app.php
provider array
vnclone\LaravelStaticHtmlCache\Provider\LaravelStaticHtmlCacheProvider::class,
Then add the middleware to the end of your Http/Kernel.php
middleware array.
protected $middleware = [ \vnclone\LaravelStaticHtmlCache\Http\Middleware\LaravelStaticHtmlCacheMiddleware::class, ];
Clear the files
To clear all the files manually you can use an artisan task.
php artisan static-html-cache:clear