Cache
Smart Tiered Cache
Smart Tiered Cache picks the single closest upper tier for each of a zone's lower tiers, rather than having the topology configured by hand.
Smart Tiered Cache picks the single closest upper tier for each of a zone's lower tiers, rather than having the topology configured by hand.
Get
Current Smart Tiered Cache setting for a zone.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
zoneId | string | Yes | Zone Identifier. |
php
$response = $client->cache()->smartTieredCache()->get('ZONE_ID');
Create
Set the Smart Tiered Cache topology for a zone.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
zoneId | string | Yes | Zone Identifier. | |
enabled | bool | Yes | Whether Smart Tiered Cache is enabled. |
php
$response = $client->cache()->smartTieredCache()->create('ZONE_ID', true);
Edit
Turn Smart Tiered Cache on or off for a zone.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
zoneId | string | Yes | Zone Identifier. | |
enabled | bool | Yes | Whether Smart Tiered Cache is enabled. |
php
$response = $client->cache()->smartTieredCache()->edit('ZONE_ID', true);
Delete
Remove the Smart Tiered Cache topology from a zone.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
zoneId | string | Yes | Zone Identifier. |
php
$response = $client->cache()->smartTieredCache()->delete('ZONE_ID');
Regional Tiered Cache
Regional Tiered Cache adds a regional hub data center between the lower tiers and the upper tier, which helps when the upper tier is far away.
Variants
Variant support caches images with certain file extensions separately per MIME type, so an origin serving `webp` to one client and `jpeg` to another does not have them collapsed into a single cached copy.

