]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blobdiff - includes/api/ApiQueryBase.php
MediaWiki 1.15.5-scripts
[autoinstalls/mediawiki.git] / includes / api / ApiQueryBase.php
index 9d1cbceae741de61cfb224da0c2e0313fd0715fa..7e2b1d5eed19cbb4250ffd64bcbe8234e1f021dc 100644 (file)
@@ -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 $';
        }
 }