public function __construct()
{
// Execute the healthcheck as quickly as possible
if ('/cache-healthcheck?' === $_SERVER['REQUEST_URI']) {
if (function_exists('newrelic_end_transaction')) {
# See: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-api#api-end-txn
newrelic_end_transaction(true);
}
die('ok');
}
add_action('init', array($this, 'init'));
}