summaryrefslogtreecommitdiff
path: root/includes/api/ApiParse.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-07-28 10:05:59 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-07-28 10:05:59 +0200
commit00ab76a6b686e98a914afc1975812d2b1aaa7016 (patch)
tree0509bcf2b8a30056833a289e3717b55bdb189835 /includes/api/ApiParse.php
parenta5be612e4169e11b51647cbaa2abc976de00d671 (diff)
update to MediaWiki 1.15.5
Diffstat (limited to 'includes/api/ApiParse.php')
-rw-r--r--includes/api/ApiParse.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php
index 8f4b70bf..c8cd07fe 100644
--- a/includes/api/ApiParse.php
+++ b/includes/api/ApiParse.php
@@ -38,6 +38,9 @@ class ApiParse extends ApiBase {
}
public function execute() {
+ // The data is hot but user-dependent, like page views, so we set vary cookies
+ $this->getMain()->setCacheMode( 'anon-public-user-private' );
+
// Get parameters
$params = $this->extractRequestParams();
$text = $params['text'];
@@ -277,6 +280,6 @@ class ApiParse extends ApiBase {
}
public function getVersion() {
- return __CLASS__ . ': $Id: ApiParse.php 48544 2009-03-18 23:27:48Z aboostani $';
+ return __CLASS__ . ': $Id: ApiParse.php 69986 2010-07-27 03:57:39Z tstarling $';
}
}