mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
EchoHooks: Skip onOutputPageCheckLastModified on action=raw
Bug: T279213 Change-Id: I9d3bf664f86c6dba5cc526a17bfab10303e0267d
This commit is contained in:
parent
6135c62518
commit
cc50ae633d
|
@ -1208,6 +1208,12 @@ class EchoHooks implements RecentChange_saveHook {
|
|||
}
|
||||
|
||||
public static function onOutputPageCheckLastModified( array &$modifiedTimes, OutputPage $out ) {
|
||||
$req = $out->getRequest();
|
||||
if ( $req->getRawVal( 'action' ) === 'raw' || $req->getRawVal( 'action' ) === 'render' ) {
|
||||
// Optimisation: Avoid expensive EchoSeenTime compute on non-skin responses (T279213)
|
||||
return;
|
||||
}
|
||||
|
||||
$user = $out->getUser();
|
||||
if ( $user->isLoggedIn() ) {
|
||||
$notifUser = MWEchoNotifUser::newFromUser( $user );
|
||||
|
|
Loading…
Reference in a new issue