Releases: hamburgscleanest/laravel-guzzle-throttle
Bugfix
The use of new HandlerStack was breaking the possibility to use a shared cookie jar by passing cookies => true in the GuzzleClient constructor (http://docs.guzzlephp.org/en/stable/quickstart.html#cookies).
Thanks @remipou!
Laravel 5.7 Compatibility
This release adds compatibility with Laravel 5.7 (Illuminate).
Improvement
The order of request parameters is now irrelevant for the cache.
If the values of the parameters are the same, the requests will be treated as the same, too.
For example if you request /test?a=1&b=2
,
the cache will know that it yields the same response as /test?b=2&a=1
.
Bugfix
Bump version of hamburgscleanest/guzzle-advanced-throttle
to include a bugfix.
Fixed
- The request count was not properly reset because
RateLimiter::getCurrentRequestCount()
wasn't used internally.
Thanks to @huisman303 for finding this!
Updated Example Configuration
General
- Set the default cache driver to
CACHE_DRIVER
defined in the.env
file instead ofdefault
.
Bugfix
Fixed
- Fixed issue in Redis driver
Optimization
General
- It's now easier to use the
ConfigHelper
when usinglaravel-guzzle-throttle
inside of other packages.
Updated Example Configuration
Example configuration was still in the old format. Updated example configuration to match version 2.0 specifications.
Optimization
Optimization
- Made sure that the Advanced Guzzle Throttle middleware is executed before any other middleware.
Bugfix
Fixed problems with Laravel cache drivers.