From 00ab76a6b686e98a914afc1975812d2b1aaa7016 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 28 Jul 2010 10:05:59 +0200 Subject: update to MediaWiki 1.15.5 --- includes/api/ApiQueryBase.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'includes/api/ApiQueryBase.php') diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 9d1cbcea..7e2b1d5e 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -46,6 +46,17 @@ abstract class ApiQueryBase extends ApiBase { $this->resetQueryParams(); } + /** + * Get the cache mode for the data generated by this module. Override this + * in the module subclass. + * + * Public caching will only be allowed if *all* the modules that supply + * data for a given request return a cache mode of public. + */ + public function getCacheMode( $params ) { + return 'private'; + } + /** * Blank the internal arrays with query parameters */ @@ -414,7 +425,7 @@ abstract class ApiQueryBase extends ApiBase { * @return string */ public static function getBaseVersion() { - return __CLASS__ . ': $Id: ApiQueryBase.php 47450 2009-02-18 15:26:09Z catrope $'; + return __CLASS__ . ': $Id: ApiQueryBase.php 69986 2010-07-27 03:57:39Z tstarling $'; } } -- cgit v1.2.3-54-g00ecf