diff options
Diffstat (limited to 'includes/api/ApiQueryBase.php')
-rw-r--r-- | includes/api/ApiQueryBase.php | 13 |
1 files changed, 12 insertions, 1 deletions
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 @@ -47,6 +47,17 @@ abstract class ApiQueryBase extends ApiBase { } /** + * 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 */ protected function resetQueryParams() { @@ -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 $'; } } |