You are here

public function Vcl::validate_version in Fastly 7.2

Validates last cloned version.

Return value

bool

1 call to Vcl::validate_version()
Vcl::execute in ./fastly.vcl.inc
Main execute function, takes values inserted into constructor, builds requests and sends them via Fastly API.

File

./fastly.vcl.inc, line 647

Class

Vcl
Class to control the VCL handling.

Code

public function validate_version() {
  $uri = $this->_version_base_url . '/' . $this->_last_cloned_version . '/validate';
  $response = $this->_api
    ->makeRequest($uri, array(), "GET", $this->_headers_get);
  if ($response->code != 404) {
    return TRUE;
  }
  return FALSE;
}