From 07e23b39a45ea1257e6ee4c58c5ddb30804d9a0b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 6 May 2016 21:58:12 -0700 Subject: [PATCH] Make stashEditFromPreview() call setCacheTime() This makes sure the output can pass the "presumed fresh" check. Bug: T134620 Change-Id: I4f9ac2f1b9cef5c6b179946ea02a5e2fad2adc09 --- includes/api/ApiStashEdit.php | 3 +++ 1 file changed, 3 insertions(+) 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 ) { -- 2.20.1