PHP Client for Cloudflare API
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.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
php
$response = $client->cache()->smartTieredCache()->get('ZONE_ID');
View this operation on the Cloudflare API Reference

Create

Set the Smart Tiered Cache topology for a zone.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
enabledboolYesWhether Smart Tiered Cache is enabled.
php
$response = $client->cache()->smartTieredCache()->create('ZONE_ID', true);
View this operation on the Cloudflare API Reference

Edit

Turn Smart Tiered Cache on or off for a zone.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
enabledboolYesWhether Smart Tiered Cache is enabled.
php
$response = $client->cache()->smartTieredCache()->edit('ZONE_ID', true);
View this operation on the Cloudflare API Reference

Delete

Remove the Smart Tiered Cache topology from a zone.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
php
$response = $client->cache()->smartTieredCache()->delete('ZONE_ID');
View this operation on the Cloudflare API Reference
Copyright © 2026