X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiStashEdit.php;h=345767089a8f01891281cc957f777dcff418d3b7;hb=2086cd118020f6388d7b6952ac2d9e2b55e6ef1f;hp=2f9f37ec27c7439055921aedd46cea4c0174dc4f;hpb=8eb1344fba57bd16ecd9640d7172c429bccdf79e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiStashEdit.php b/includes/api/ApiStashEdit.php index 2f9f37ec27..345767089a 100644 --- a/includes/api/ApiStashEdit.php +++ b/includes/api/ApiStashEdit.php @@ -239,7 +239,9 @@ class ApiStashEdit extends ApiBase { $wgMemc->unlock( $key ); } $sec = microtime( true ) - $start; - wfDebugLog( 'StashEdit', "Waited $sec seconds on '$key'." ); + if ( $sec > .01 ) { + wfDebugLog( 'StashEdit', "Waited $sec seconds on '$key'." ); + } } if ( !is_object( $editInfo ) || !$editInfo->output ) { @@ -331,6 +333,7 @@ class ApiStashEdit extends ApiBase { // If an item is renewed, mind the cache TTL determined by config and parser functions $since = time() - wfTimestamp( TS_UNIX, $parserOutput->getTimestamp() ); $ttl = min( $parserOutput->getCacheExpiry() - $since, 5 * 60 ); + if ( $ttl > 0 && !$parserOutput->getFlag( 'vary-revision' ) ) { // Only store what is actually needed $stashInfo = (object)array(