Skip to content

Feature: Endpoints\Zones cachePurge Prefixes Implementation#147

Open
spenserhale wants to merge 2 commits intocloudflare:masterfrom
spenserhale:feature-zones-cachepurge-prefixes
Open

Feature: Endpoints\Zones cachePurge Prefixes Implementation#147
spenserhale wants to merge 2 commits intocloudflare:masterfrom
spenserhale:feature-zones-cachepurge-prefixes

Conversation

@spenserhale
Copy link
Copy Markdown

Implementing Prefixes optional parameter for purge_cache route.

Adding prefixes parameter for clearning assets at URLs that match the
prefix will be purged from the Cloudflare cache.
Comment thread src/Endpoints/Zones.php
return false;
}

public function cachePurge(string $zoneID, array $files = null, array $tags = null, array $hosts = null): bool
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the cyclomatic complexity of this method hit 10 with these additions, causing CI to fail. Some functionality will need to be extracted into smaller methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants