You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
-
96
90
## Relationship Caching
97
91
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.
98
92
@@ -109,7 +103,7 @@ $orders = $user->orders;
109
103
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.
0 commit comments