New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

vnclone/laravel-static-html-cache

store/cache generated responses as a static file
14
Install
composer require vnclone/laravel-static-html-cache:dev-master
PHP:>=7.0
License:MIT
Last Updated:Jun 22, 2017
Links: GitHub  ·  Packagist
Maintainer: VietSmall

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

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

610,364,751 34,988
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

412,228,818 4,664