From: Aaron Schulz Date: Sat, 7 May 2016 04:58:12 +0000 (-0700) Subject: Make stashEditFromPreview() call setCacheTime() X-Git-Tag: 1.31.0-rc.0~7060 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=07e23b39a45ea1257e6ee4c58c5ddb30804d9a0b;p=lhc%2Fweb%2Fwiklou.git Make stashEditFromPreview() call setCacheTime() This makes sure the output can pass the "presumed fresh" check. Bug: T134620 Change-Id: I4f9ac2f1b9cef5c6b179946ea02a5e2fad2adc09 --- diff --git a/includes/api/ApiStashEdit.php b/includes/api/ApiStashEdit.php index 577d5f84fe..5efefbd2a2 100644 --- a/includes/api/ApiStashEdit.php +++ b/includes/api/ApiStashEdit.php @@ -219,6 +219,9 @@ class ApiStashEdit extends ApiBase { return false; } + // Set the time the output was generated + $pOut->setCacheTime( wfTimestampNow() ); + // Build a value to cache with a proper TTL list( $stashInfo, $ttl ) = self::buildStashValue( $pstContent, $pOut, $timestamp ); if ( !$stashInfo ) {