@@ -16,8 +16,8 @@ trait Caching
1616 protected $ isCachable = true ;
1717 protected $ scopesAreApplied = false ;
1818 protected $ macroKey = "" ;
19- protected $ withoutScopes = [];
20- protected $ withoutAllScopes = false ;
19+ protected $ withoutGlobalScopes = [];
20+ protected $ withoutAllGlobalScopes = false ;
2121
2222 public function __call ($ method , $ parameters )
2323 {
@@ -47,13 +47,13 @@ protected function applyScopesToInstance()
4747 {
4848 if (! property_exists ($ this , "scopes " )
4949 || $ this ->scopesAreApplied
50- || $ this ->withoutAllScopes
50+ || $ this ->withoutAllGlobalScopes
5151 ) {
5252 return ;
5353 }
5454
5555 foreach ($ this ->scopes as $ identifier => $ scope ) {
56- if (! isset ($ this ->scopes [$ identifier ]) || isset ($ this ->withoutScopes [$ identifier ])) {
56+ if (! isset ($ this ->scopes [$ identifier ]) || isset ($ this ->withoutGlobalScopes [$ identifier ])) {
5757 continue ;
5858 }
5959
@@ -169,7 +169,7 @@ protected function makeCacheKey(
169169 $ query = $ this ->query ->getQuery ();
170170 }
171171
172- return (new CacheKey ($ eagerLoad , $ model , $ query , $ this ->macroKey , $ this ->withoutScopes , $ this ->withoutAllScopes ))
172+ return (new CacheKey ($ eagerLoad , $ model , $ query , $ this ->macroKey , $ this ->withoutGlobalScopes , $ this ->withoutAllGlobalScopes ))
173173 ->make ($ columns , $ idColumn , $ keyDifferentiator );
174174 }
175175
0 commit comments