vnclone / laravel-static-html-cache by VietSmall

store/cache generated responses as a static file
14
0
2
Package Data
Maintainer Username: VietSmall
Maintainer Contact: michael.scharl@me.com (Michael Scharl)
Package Create Date: 2017-06-22
Package Last Update: 2017-06-22
Home Page: https://vnclone.com
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 15:05:24
Package Statistics
Total Downloads: 14
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

laravel-static-html-cache

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