Looking to hire Laravel developers? Try LaraJobs

laravel-static-html-cache maintained by vnclone

Description
store/cache generated responses as a static file
Last update
2017/06/23 01:18 (dev-master)
License
Links
Downloads
14

Comments
comments powered by Disqus

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