From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/AjaxResponse.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'includes/AjaxResponse.php') 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; -- cgit v1.2.2