File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,12 @@ public static function writeWithParent(
80
80
$ config = 'default ' ,
81
81
$ parentKey = ''
82
82
) {
83
- $ settings = Cache::settings ($ config );
83
+
84
+ if (method_exists (Cache::engine ($ config ), 'getActiveCacheSettings ' )) {
85
+ $ settings = Cache::engine ($ config )->getActiveCacheSettings ();
86
+ } else {
87
+ $ settings = Cache::settings ($ config );
88
+ }
84
89
85
90
if (empty ($ settings )) {
86
91
return false ;
Original file line number Diff line number Diff line change @@ -150,4 +150,9 @@ public function key($key)
150
150
{
151
151
return Cache::engine ($ this ->activeCache )->key ($ key );
152
152
}
153
+
154
+ public function getActiveCacheSettings ()
155
+ {
156
+ return Cache::engine ($ this ->activeCache )->settings ();
157
+ }
153
158
}
You can’t perform that action at this time.
0 commit comments