diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /includes/AjaxResponse.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'includes/AjaxResponse.php')
-rw-r--r-- | includes/AjaxResponse.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index b9f80855..e60ca23c 100644 --- a/includes/AjaxResponse.php +++ b/includes/AjaxResponse.php @@ -180,11 +180,11 @@ class AjaxResponse { $this->disable(); $this->mLastModified = $lastmod; - wfDebug( "$fname: CACHED client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp ; site $wgCacheEpoch\n", false ); + wfDebug( "$fname: CACHED client: $ismodsince ; user: {$wgUser->getTouched()} ; page: $timestamp ; site $wgCacheEpoch\n", false ); return true; } else { - wfDebug( "$fname: READY client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp ; site $wgCacheEpoch\n", false ); + wfDebug( "$fname: READY client: $ismodsince ; user: {$wgUser->getTouched()} ; page: $timestamp ; site $wgCacheEpoch\n", false ); $this->mLastModified = $lastmod; } } else { @@ -193,6 +193,11 @@ class AjaxResponse { } } + /** + * @param $mckey + * @param $touched + * @return bool + */ function loadFromMemcached( $mckey, $touched ) { global $wgMemc; @@ -216,6 +221,11 @@ class AjaxResponse { return false; } + /** + * @param $mckey + * @param $expiry int + * @return bool + */ function storeInMemcached( $mckey, $expiry = 86400 ) { global $wgMemc; |