Page MenuHomePhabricator

RawAction action=raw spends significant time in EchoSeenTime (via EchoHooks::onOutputPageCheckLastModified)
Closed, ResolvedPublic

Description

I noticed as part of T279120 research that about 30% of the response time for action=raw is EchoSeenTime. This code exists for the purpose of forcing a cache miss when a logged-in user revisits a page they have already visited recently, if they received new notifications since then.

This applies to page views and most wikipage actions, but not action=raw or action=render, where no skin output is used.

capture.png (954×2 px, 126 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 676689 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/extensions/Echo@master] EchoHooks: Skip onOutputPageCheckLastModified on action=raw

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

Change 676515 had a related patch set uploaded (by Reedy; author: Krinkle):

[mediawiki/extensions/Echo@REL1_35] EchoHooks: Skip onOutputPageCheckLastModified on action=raw

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

Change 676515 merged by jenkins-bot:

[mediawiki/extensions/Echo@REL1_35] EchoHooks: Skip onOutputPageCheckLastModified on action=raw

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

Change 676689 merged by jenkins-bot:

[mediawiki/extensions/Echo@master] EchoHooks: Skip onOutputPageCheckLastModified on action=raw

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

Legoktm assigned this task to Krinkle.