Skip to content

Commit b31eb03

Browse files
committed
Fixed readme.
1 parent b8012fa commit b31eb03

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ $alice = Kid::whereName('Alice')->cacheFor(60)->cacheTags(['kids'])->first();
8787
$bob = Kid::whereName('Bob')->cacheFor(60)->cacheTags(['kids'])->first();
8888
```
8989

90-
In case you want to invalidate all the cache, don't specify an argument for the `flushQueryCache()` method:
91-
92-
```php
93-
Problem::flushQueryCache(); // bye-bye problems!
94-
```
95-
9690
## Relationship Caching
9791
Relationships are just another queries. They can be intercepted and modified before the database is hit with the query. The following example needs the `Order` model (or the model associated with the `orders` relationship) to include the `QueryCacheable` trait.
9892

@@ -109,7 +103,7 @@ $orders = $user->orders;
109103
The package automatically generate the keys needed to store the data in the cache store. However, prefixing them might be useful if the cache store is used by other applications and/or models and you want to manage the keys better to avoid collisions.
110104

111105
```php
112-
$bob = Kid::whereName('Bob')->cacheFor(60)->prefix('kids_')->first();
106+
$bob = Kid::whereName('Bob')->cacheFor(60)->cachePrefix('kids_')->first();
113107
```
114108

115109
If no prefix is specified, the string `leqc` is going to be used.

0 commit comments

Comments
 (0)