Index: trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php |
— | — | @@ -204,10 +204,6 @@ |
205 | 205 | return $conds; |
206 | 206 | } |
207 | 207 | |
208 | | - public function setCacheMode( $params ) { |
209 | | - return 'public'; |
210 | | - } |
211 | | - |
212 | 208 | public function getAllowedParams() { |
213 | 209 | global $wgFeedClasses; |
214 | 210 | $feedFormatNames = array_keys( $wgFeedClasses ); |
Index: trunk/extensions/FlaggedRevs/api/ApiFlagConfig.php |
— | — | @@ -29,6 +29,7 @@ |
30 | 30 | class ApiFlagConfig extends ApiBase { |
31 | 31 | |
32 | 32 | public function execute() { |
| 33 | + $this->getMain()->setCacheMode( 'public' ); |
33 | 34 | global $wgFlaggedRevTags; |
34 | 35 | $data = array(); |
35 | 36 | foreach ( $wgFlaggedRevTags as $tag => $params ) { |
— | — | @@ -44,10 +45,6 @@ |
45 | 46 | $result->addValue( null, $this->getModuleName(), $data ); |
46 | 47 | } |
47 | 48 | |
48 | | - public function getCacheMode( $params ) { |
49 | | - return 'public'; |
50 | | - } |
51 | | - |
52 | 49 | public function mustBePosted() { |
53 | 50 | return false; |
54 | 51 | } |
Index: trunk/extensions/FlaggedRevs/api/ApiQueryOldreviewedpages.php |
— | — | @@ -149,7 +149,7 @@ |
150 | 150 | } |
151 | 151 | } |
152 | 152 | |
153 | | - public function getCachedMode( $params ) { |
| 153 | + public function getCacheMode( $params ) { |
154 | 154 | if ( $params['filterwatched'] == 'watched' ) { |
155 | 155 | // Private data |
156 | 156 | return 'private'; |