File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
55and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 0.2.51] - 51 Mar 2018
8+ ### Added
9+ - disabling of ` all() ` query.
10+
711## [ 0.2.50] - 10 Mar 2018
812### Added
913- cache invalidation when ` destroy() ` ing models.
Original file line number Diff line number Diff line change @@ -131,11 +131,6 @@ There are two methods by which model-caching can be disabled:
1311311 . Use ` ->disableCache() ` in a query-by-query instance.
1321322 . Set ` MODEL_CACHE_DISABLED=TRUE ` in your ` .env ` file.
133133
134- ** EXCEPTION:** currently the ` ::all() ` method cannot be disabled by doing something
135- like this: ` $model->disableCache()->all() ` , because it is a static method. To
136- work around this, use the ` ->get() ` method if you really need to disable the
137- cache for that single query. Disabling cache via the config flag still works.
138-
139134** Recommendation: use option #1 in all your seeder queries to avoid pulling in
140135cached information when reseeding multiple times.**
141136You can disable a given query by using ` disableCache() ` anywhere in the query chain. For example:
You can’t perform that action at this time.
0 commit comments