Skip to content

Commit cd539b6

Browse files
committed
Update documentation
1 parent abecd61 commit cd539b6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and 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.

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,6 @@ There are two methods by which model-caching can be disabled:
131131
1. Use `->disableCache()` in a query-by-query instance.
132132
2. 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
140135
cached information when reseeding multiple times.**
141136
You can disable a given query by using `disableCache()` anywhere in the query chain. For example:

0 commit comments

Comments
 (0)