HeaderCallback: pre-cache request ID

Follows up on Ia3711459d22309.

Bug: T261260
Change-Id: I245747d0b6fcdf0f64d7aabe9972062472dc36da
This commit is contained in:
Gergő Tisza 2020-11-18 21:14:18 -08:00
parent 8cafbac2b8
commit ef26a5b07b
No known key found for this signature in database
GPG key ID: C34FEC97E6257F96

View file

@ -23,6 +23,8 @@ class HeaderCallback {
// it will have to be loaded at some point anyway.
// This can be removed once we require PHP 8.0+.
class_exists( \WebRequest::class );
// Likewise, cache the request ID.
\WebRequest::getRequestId();
header_register_callback( [ __CLASS__, 'callback' ] );
}