Skip to content

Commit 50ed138

Browse files
authored
Merge pull request #47 from GeneaLabs/laravel-5.5
Update documentation
2 parents cce4386 + 871972a commit 50ed138

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

CHANGELOG.md

+4
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.14] - 30 Dec 2017
8+
### Added
9+
- ability to flush cache for a given model via Artisan command.
10+
711
## [0.2.13] - 28 Dec 2017
812
### Added
913
- ability to define custom cache store in `.env` file.

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,22 @@ it needs to be placed (anywhere) prior to the query command (`get()`, `all()`,
8282
$results = $myModel->disableCache()->all();
8383
```
8484

85+
### Manual Flushing of Specific Model
86+
You can flush the cache of a specific model using the following artisan command:
87+
```sh
88+
php artisan modelCaching:flush --model=App\Model
89+
```
90+
91+
This comes in handy when manually making updates to the database. You could also
92+
trigger this after making updates to the database from sources outside your
93+
Laravel app.
94+
95+
## Summary
8596
**That's all you need to do. All model queries and relationships are now
8697
cached!**
8798

8899
In testing this has optimized performance on some pages up to 900%! Most often
89-
you should see somewhere around 100% performance increase. (I will show some
90-
concrete examples here soon, still working on optimizing things first.)
100+
you should see somewhere around 100% performance increase.
91101

92102
## Commitment to Quality
93103
During package development I try as best as possible to embrace good design and

0 commit comments

Comments
 (0)