Skip to content

Commit

Permalink
Introduce improvements from guzzle-advanced-throttle
Browse files Browse the repository at this point in the history
  • Loading branch information
timopruesse committed Dec 2, 2018
1 parent a713f88 commit d1fd05e
Show file tree
Hide file tree
Showing 5 changed files with 347 additions and 188 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip

----------

## 3.1.0

- Changed the cached representation of the response

### Laravel storage adapters

You can disable caching for empty responses in the config now by setting `allow_empty` to `false`.

Check out the [example configuration](https://github.com/hamburgscleanest/laravel-guzzle-throttle#example-configuration) for more information on how to set it.

----------

## 3.0.2

Changed visibility of `ConfigHelper::getMiddlewareConfig` to public.
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ $ php artisan vendor:publish
// Cache strategy: no-cache, cache, force-cache
'strategy' => 'cache',
// TTL in minutes
'ttl' => 900
'ttl' => 900,
// When this is set to false, empty responses won't be cached.
'allow_empty' => true
],
'rules' => [
// host (including scheme)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"require": {
"php": "^7.1",
"hamburgscleanest/guzzle-advanced-throttle": "^3",
"hamburgscleanest/guzzle-advanced-throttle": "^3.1.0",
"illuminate/support": "^5.7"
},
"require-dev": {
Expand Down
Loading

0 comments on commit d1fd05e

Please sign in to comment.