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.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 0.2.51] - 51 Mar 2018
8
+ ### Added
9
+ - disabling of ` all() ` query.
10
+
7
11
## [ 0.2.50] - 10 Mar 2018
8
12
### Added
9
13
- 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:
131
131
1 . Use ` ->disableCache() ` in a query-by-query instance.
132
132
2 . Set ` MODEL_CACHE_DISABLED=TRUE ` in your ` .env ` file.
133
133
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
-
139
134
** Recommendation: use option #1 in all your seeder queries to avoid pulling in
140
135
cached information when reseeding multiple times.**
141
136
You 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