Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -261,7 +261,7 @@ |
262 | 262 | ######### |
263 | 263 | |
264 | 264 | # Bump this number every time you change flaggedrevs.css/flaggedrevs.js |
265 | | -$wgFlaggedRevStyleVersion = 40; |
| 265 | +$wgFlaggedRevStyleVersion = 41; |
266 | 266 | |
267 | 267 | $wgExtensionFunctions[] = 'efLoadFlaggedRevs'; |
268 | 268 | |
— | — | @@ -408,9 +408,6 @@ |
409 | 409 | $wgHooks['PageHistoryBeforeList'][] = 'FlaggedRevsHooks::injectStyleAndJS'; |
410 | 410 | $wgHooks['BeforePageDisplay'][] = 'FlaggedRevsHooks::InjectStyleForSpecial'; |
411 | 411 | |
412 | | -# File cache |
413 | | -$wgHooks['IsFileCacheable'][] = 'FlaggedRevsHooks::isFileCacheable'; |
414 | | - |
415 | 412 | # Cache updates |
416 | 413 | $wgHooks['HTMLCacheUpdate::doUpdate'][] = 'FlaggedRevsHooks::doCacheUpdate'; |
417 | 414 | |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1240,19 +1240,6 @@ |
1241 | 1241 | } |
1242 | 1242 | return true; |
1243 | 1243 | } |
1244 | | - |
1245 | | - public static function isFileCacheable( &$article ) { |
1246 | | - $fa = FlaggedArticle::getInstance( $article ); |
1247 | | - # If the stable is the default, and we are viewing it...cache it! |
1248 | | - if( $fa->isReviewable() && $fa->showStableByDefault() ) { |
1249 | | - return ( $fa->pageOverride() && $fa->getStableRev() ); |
1250 | | - # If the draft is the default, and we are viewing it...cache it! |
1251 | | - } else { |
1252 | | - global $wgRequest; |
1253 | | - # We don't want to cache the pending edit notice though |
1254 | | - return !$wgRequest->getVal('shownotice') && !( $fa->pageOverride() && $fa->getStableRev() ); |
1255 | | - } |
1256 | | - } |
1257 | 1244 | |
1258 | 1245 | public static function onParserTestTables( &$tables ) { |
1259 | 1246 | $tables[] = 'flaggedpages'; |