Looking to hire Laravel developers? Try LaraJobs

laravel-cache-buster maintained by hcdesigns

Description
Laravel cache buster
Author
Last update
2017/09/11 14:43 (dev-master)
License
Links
Downloads
634

Comments
comments powered by Disqus

Laravel Cache Buster

Invalidate cache + blade view cache by posting to a URL.

Installation

Require this package with composer:

composer require hcdesigns/laravel-cache-buster

Add this package to your project in app.php:

Hcdesigns\LaravelCacheBuster\CacheServiceProvider::class,

Initialize this package:

php artisan vendor:publish

Customization

In config/cache-buster.php you can edit your API key and customize your URL

Usage

POST via curl or a browser to:

http://example.com/hcdesigns-laravel-cache-buster

with parameters: api_key (config/cache-buster.php) and type (all, view)

To Do

Allow clearing cache by key and tags