WPCOM_VIP_Cache_Manager::__construct PHP Method

__construct() public method

public __construct ( )
    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'));
    }