Skip to main content
Version: 1.0.0

Environment API

The environment endpoint contains only the cache purge for the time being.

Cache purge#

The cache purge call will return an instance of the Response-object.

$environmentId = 123;$files = [    'https://example.com/some/path.html',    'https://example.com/some/other/path.html',];$prefixes = [    'https://example.com/some/prefix/path',    'https://example.com/some/other/prefix/path',];$client->environment->purgeCache($environmentId, $files, $prefixes);

You can also specify the environment ID in the chained method calls.

$files = [    'https://example.com/some/path.html',    'https://example.com/some/other/path.html',];$prefixes = [    'https://example.com/some/prefix/path',    'https://example.com/some/other/prefix/path',];$client->environment($environmentId)->purgeCache($files, $prefixes);