Skip to content

Conversation

@imacrayon
Copy link

Calling the invalidateUrls method in CloudflareCacher invalidates all URLs twice:

  • First, invalidateUrls is called on the defined Static Cache Strategy to invalidate each URL.
  • Next, invalideUrl is called inside a loop to, again, invalidate each URL.

invalidateUrls also issues a Cloudflare API request for every URL passed to the method - 50 URLs = 50 API requests.

This PR removes the redundant invalidation calls and batches all invalid URLs into a single Cloudflare API request.

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.

1 participant