@@ -65,9 +65,7 @@ public function getStorageType(): string
6565 */
6666 public function isViewTypeEnabled ( string $ ViewType ): bool
6767 {
68- $ ViewSettings = $ this ->_Settings ['views ' ] ?? [];
69-
70- return $ ViewSettings [$ ViewType ] ?? true ;
68+ return $ this ->_Settings [$ ViewType ] ?? true ;
7169 }
7270
7371 /**
@@ -106,22 +104,16 @@ public static function fromSettings( ISettingSource $Settings ): self
106104
107105 // For views settings, we need to check each view type
108106 $ ViewTypes = [ 'html ' , 'markdown ' , 'json ' , 'xml ' ];
109- $ ViewSettings = [];
110107
111108 foreach ( $ ViewTypes as $ ViewType )
112109 {
113- $ ViewEnabled = $ Settings ->get ( 'views ' , $ ViewType );
110+ $ ViewEnabled = $ Settings ->get ( 'cache ' , $ ViewType );
114111 if ( $ ViewEnabled !== null )
115112 {
116- $ ViewSettings [$ ViewType ] = $ ViewEnabled === 'true ' || $ ViewEnabled === '1 ' ;
113+ $ CacheSettings [$ ViewType ] = $ ViewEnabled === 'true ' || $ ViewEnabled === '1 ' ;
117114 }
118115 }
119116
120- if ( !empty ( $ ViewSettings ) )
121- {
122- $ CacheSettings ['views ' ] = $ ViewSettings ;
123- }
124-
125117 // Get GC settings if present
126118 $ GcProbability = $ Settings ->get ( 'cache ' , 'gc_probability ' );
127119 if ( $ GcProbability !== null )
@@ -159,4 +151,4 @@ public function getGcDivisor(): int
159151 // Default divisor for probability calculation
160152 return (int ) ( $ this ->_Settings ['gc_divisor ' ] ?? 100 );
161153 }
162- }
154+ }
0 commit comments