NewYour coding agent can read the release notes before it upgrades.Set up the MCP server β
Packagist
Packagist, #2269 most downloaded on Packagist
Adding cache on your Laravel Eloquent queries' results is now a breeze.
Latest stable
3.6.1
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 9 days to 1.7 years
Most releases are documented
notes for 32 of 37 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
37 releases Β· first in 2019
Drag across the ruler to compare, or tap a release to open it.
Laravel 12.x Compatibility by @laravel-shift in https://github.com/renoki-co/laravel-eloquent-query-cache/pull/232
Full Changelog: https://github.com/renoki-co/laravel-eloquent-query-cache/compare/3.5.0...3.6.1
Laravel 12.x Compatibility by @laravel-shift in https://github.com/renoki-co/laravel-eloquent-query-cache/pull/232
Full Changelog: https://github.com/renoki-co/laravel-eloquent-query-cache/compare/3.5.0...3.6.0
Upgrade to laravel 11 by @yormy in https://github.com/renoki-co/laravel-eloquent-query-cache/pull/219
Your coding agent can read these notes before it upgrades. Set up the MCP server β
Full Changelog: https://github.com/renoki-co/laravel-eloquent-query-cache/compare/3.4.0...3.5.0
- Dropped: PHP 8.0, Laravel 8.x
Fixed a bug that occured when Laravel's eloquent strictness was enabled
- Laravel 9.x (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/120) - - Dropped PHP 7.3, 7.4 - - Dropped Laravel 7.x
Avoid double-calling of the function that flushes cache on update
- Fixed methods' signatures
Fixed a typo that could make the cache not fill in
Fixed a bug where returning null in cacheForValue() actually hit the cache
null in cacheForValue() actually hit the cache (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/101)Fixed a bug where the getCacheBaseTags method used self::class instead of the expected static::class
getCacheBaseTags method used self::class instead of the expected static::class (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/96)Fix issues with the getCacheKey() being hardcoded as get
getCacheKey() being hardcoded as get (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/94)Define values within business logic to replace static properties for caching
Added support for many to many automatic invalidations
Read the 3.x Documentation on Many-to-Many Automatic Cache Invalidation
getCacheTagsToInvalidateOnUpdate changed:For invalidation on many-to-many relations, $relation will be the name of the relation (posts, roles, etc.) while $pivotedModels will be a collection of models that got attached/detached/updated (Post, Role, etc.)
public function getCacheTagsToInvalidateOnUpdate($relation = null, $pivotedModels = null): array
{
//
}
Fixed a bug where the getCacheBaseTags method used self::class instead of the expected static::class
getCacheBaseTags method used self::class instead of the expected static::class (https://github.com/renoki-co/laravel-eloquent-query-cache/commit/69f16f9615bde4daf469e2aac46c34c23d551c79, 3.x ref: https://github.com/renoki-co/laravel-eloquent-query-cache/pull/96)Added optional boolean parameter to dontCache()
dontCache() (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/74)- Added missing doc comments
Fixed a bug where ->get('something') would have thrown an error.
->get('something') would have thrown an error. (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/56, https://github.com/renoki-co/laravel-eloquent-query-cache/pull/56/commits/4ca912a269eb7d64e85bec6bcb65fce40cc75019)->subSelect() with raw queries would have thrown an error. (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/56, https://github.com/renoki-co/laravel-eloquent-query-cache/pull/56/commits/fb1367da65c463c565c5c72b8a8a46000e983c41)Nothing published for this version
- Dropped Laravel 6.x - Dropped PHP 7.2 - Added PHP 8.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added appendCacheTags() to append tags during the query building
appendCacheTags() to append tags during the query building (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/38)selectSub() builder method (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/38)Non-taggable drivers are supported out-of-the-box
Replaced boot() method with more appropriate implementation to avoid method overlaps
boot() method with more appropriate implementation to avoid method overlaps (https://github.com/renoki-co/laravel-eloquent-query-cache/pull/33)- Tweaked the code a bit
Please see the README docs about this breaking changes feature:
Breaking changes:
boot() method within the model gets replacedPlease see the README docs about this breaking changes feature:
This update adds the ability to purge cache for all queries related to a model.
This update adds the ability to purge cache for all queries related to a model.
Since the tags that are used on cache calls changed, apps that already use the package in production and rely heavily on the cache might see spikes on database usage since the tags no longer match with the already-existing cache.
Make sure that you provide enough resources to supply the spike in usage.
See PR for all the changes: https://github.com/rennokki/laravel-eloquent-query-cache/pull/19
Fixed a bug when SerializesModels would fetch cached data instead of fresh data
* Support for Laravel 7.x
Exposing $id to the cache functions
$id to the cache functions (https://github.com/rennokki/laravel-eloquent-query-cache/pull/9)You may now be able to add the caching technique to your builders
Fixed a bug where the caching would be on forever
Flushing query cache by tags will now iterate and invalidate each tag instead of trying to flush the cache that has all the tags (in the same order)
Fixed issues regarding dontCache() π€
dontCache() π€Nothing published for this version
One column per quarter.