File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
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.9] - 14 Dec 2017
8
+ ### Added
9
+ - chainable method to disable caching of queries.
10
+
7
11
## [ 0.2.8] - 2017-10-17
8
12
### Updated
9
13
- code with optimizations and refactoring.
Original file line number Diff line number Diff line change @@ -49,6 +49,16 @@ abstract class BaseModel extends CachedModel
49
49
}
50
50
```
51
51
52
+ ### Disabling Caching of Queries
53
+ ** Recommendation: add this to all your seeder queries to avoid pulling in
54
+ cacched information when reseeding multiple times.**
55
+ You can disable a given query by using ` disableCache() ` in the query chain, and
56
+ it needs to be placed (anywhere) prior to the query command (` get() ` , ` all() ` ,
57
+ ` find() ` , etc). For example:
58
+ ``` php
59
+ $results = $myModel->disableCache()->all();
60
+ ```
61
+
52
62
** That's all you need to do. All model queries and relationships are now
53
63
cached!**
54
64
You can’t perform that action at this time.
0 commit comments