Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/234461

Change subject: Add ParserOutput cache and expiry times to NewPP report
......................................................................

Add ParserOutput cache and expiry times to NewPP report

The labels are not localized, because I think this ought to be outputted as a
JSON blob, with uniform field names. But not doing that in this patch.

Change-Id: I235839b276632308ddeac7afe763d355b73c2a25
---
M includes/parser/Parser.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/61/234461/1

diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index 9731a20..f538153 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -509,6 +509,9 @@
                        if ( $wgShowHostnames ) {
                                $limitReport .= 'Parsed by ' . wfHostname() . 
"\n";
                        }
+                       $limitReport .= 'Cached time: ' . 
$this->mOutput->getCacheTime() . "\n";
+                       $limitReport .= 'Cache expiry: ' . 
$this->mOutput->getCacheExpiry() . "\n";
+                       $limitReport .= 'Dyanmic content: ' . ( 
$this->mOutput->hasDynamicContent() ? 'true' : 'false' ) . "\n";
                        foreach ( $this->mOutput->getLimitReportData() as $key 
=> $value ) {
                                if ( Hooks::run( 'ParserLimitReportFormat',
                                        array( $key, &$value, &$limitReport, 
false, false )

-- 
To view, visit https://gerrit.wikimedia.org/r/234461
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I235839b276632308ddeac7afe763d355b73c2a25
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to