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
$eagerLoad = $this->eagerLoad ?? [];
$model = $this->model ?? $this;
$query = $this->query ?? app(Builder::class);
with
$eagerLoad = $this->retrieveEagerLoad();
$model = $this->retrieveCacheModel();
$query = $this->retrieveCacheQuery();
to avoid name collisions in case the model contains one of the 'eagerLoad', 'mode' or 'query' attributes
- added makeCachePrefix and used it to prefix cache tags and keyDifferentiator and class name tag with the value returned by the 'getCachePrefix' method of the model
This method can be used in a multitenant implementation where an object with the same key and tags is cached for each tenant database connection.
- added CacheGlobal class to be a placeholder for the global static cache disable flag. The cached value using $cache might generate unpredictable behaviour in case multiple requests are made to the server in the same time.
0 commit comments