All notable changes to laravel-responsecache
will be documented in this file.
- support Laravel 9
- add
CacheItemSelector
- add
url
option toClearCommand
(#348)
- require PHP 8+
- drop support for PHP 7.x
- use PHP 8 syntax where possible
- fix for issue #331 (#344)
- use package service provider
- add support for PHP 8
- fix clearing tagged cache
- fix tagged responsecache:clear (#316)
- Support Laravel 8
- replace Laravel/framework with individual packages (#304)
- support JSON types other than application/json (#299)
- change to the proper way of setting app URL on runtime (#290)
- drop support for Laravel 6 to fix the test suite (namespace of
TestResponse
has changed)
- add support for Laravel 7
- drop support for all non-current PHP and Laravel versions
- add support for custom serializers
- make compatible with Laravel 7, so the package can be used on PHP 7.3
- make compatible with Laravel 6
- restore laravel 5.7 compatibility
- add support for cache tags
- make json responses cacheable
- use Rfc2822S formatted date in cache time header
- added support for replacers
- you can now swap out
RequestHasher
in favor of a custom one CacheAllSuccessfulGetRequests
will only cache responses of which the content type starts withtext
- removed deprecated
Flush
command \Spatie\ResponseCache\ResponseCacheFacade
has been removed- dropped support for carbon v1
- dropped support for PHP 7.2
- make sure the request starts with the app url - fixes #177
- make host specific caches
- fix cache lifetime in config file
- drop support for Laravel 5.7 and lower
- drop support for PHP 7.0 and lower
- change all cache time parameters to seconds (see UPGRADING.md)
- add support for Laravel 5.8
- you can no longer add multiple
CacheResponse
middleware to one route
- fix for caching urls with query parameters
- fix for forgetting a specific url
- add support for Laravel 5.7
- fix for issue #123
- add support for Lumen
- add
forget
- add support for L5.6
- Added:
clear()
method andresponsecache:clear
command - Deprecated:
flush()
method andresponsecache:flush
command
Deprecated features will still work until the next major version.
- Added: Better exception handling when something goes wrong unserializing the response
- Added: Support for specific lifetimes on routes
- Fixed: Artisan command registration
- Added: Support for Laravel 5.5
- Removed: Support for all older Laravel versions
- Changed: Renamed facade class
- Added: Support for
BinaryFileResponse
- Added: Support for taggable cache
- Fixed: Php version dependency in
composer.json
- Added:
enabled
method on cache profiles - Added: Events
- Changed: Middleware won't automatically be registered anymore
- Changed: Renamed config file
- Changed: Renamed various methods for readability
- Removed: Dropped PHP 5.6 support
- Added: Support for Laravel 5.4
- Removed: Dropped support for all older Laravel versions
- Added: Usage of
RESPONSE_CACHE_LIFETIME
env var to config file
- Changed: Debug headers will not be sent when
APP_DEBUG
is set to false
- Fixed: Issue where the cache middleware couldn't correctly determine the currently authenticated user
- Fixed: An issue where cached request were still served even if the package was disabled via the config file
- Fixed: An issue where the cache header could not be set
- Fixed: BaseCacheProfile has been made abstract (as it should have been all along)
- Fixed: Default cachetime
- Added: A command to flush the response cache
- Initial release