File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,7 @@ private function compile(Builder $builder)
147147 }
148148 }
149149
150- $ cache_tables = env ('SYBASE_CACHE_TABLES ' );
151- $ cache = ! key_exists ('cache_tables ' , $ builder ->connection ->config ) || $ builder ->connection ->config ['cache_tables ' ];
150+ $ cache = $ builder ->connection ->config ['cache_tables ' ] || key_exists ('cache_tables ' , $ builder ->connection ->config );
152151
153152 $ types = [];
154153
@@ -165,7 +164,7 @@ private function compile(Builder $builder)
165164 $ tables = $ alias ['table ' ];
166165 }
167166
168- if ($ cache_tables && $ cache ) {
167+ if ($ cache ) {
169168 $ aux = Cache::remember ('sybase_columns/ ' .$ tables .'.columns_info ' , env ('SYBASE_CACHE_TABLES_TIME ' ) ?? 3600 , function () use ($ tables ) {
170169 $ queryString = $ this ->queryString ($ tables );
171170 $ queryRes = $ this ->getPdo ()->query ($ queryString );
You can’t perform that action at this time.
0 commit comments