return false;
}
+ /**
+ * Clear the info cache for a given Title.
+ *
+ * @since 1.22
+ * @param Title $title Title to clear cache for
+ */
+ public static function invalidateCache( Title $title ) {
+ global $wgMemc;
+ // Clear page info.
+ $revision = WikiPage::factory( $title )->getRevision();
+ if ( $revision !== null ) {
+ $memcKey = wfMemcKey( 'infoaction', $title->getPrefixedText(), $revision->getId() );
+ $wgMemc->delete( $memcKey );
+ }
+ }
+
/**
* Shows page information on GET request.
*
'COUNT(*)',
array(
'wl_namespace' => $title->getNamespace(),
- 'wl_title' => $title->getDBkey(),
+ 'wl_title' => $title->getDBkey(),
),
__METHOD__
);