Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions doc/proxy-clients.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ Varnish ✓ ✓ ✓ ✓ ✓
Fastly ✓ ✓ ✓ ✓
NGINX ✓ ✓
Symfony Cache ✓ ✓ ✓ (1) ✓ (1)
Cloudflare ✓ ✓ (2) ✓ (2)
Cloudflare ✓ ✓
Noop ✓ ✓ ✓ ✓ ✓ ✓
Multiplexer ✓ ✓ ✓ ✓ ✓ ✓
============= ======= ======= ======= ======= ========= =======

| (*): A limited version of Ban, that allows to invalidate by the beginning of a path
| (1): Only when using `Toflar Psr6Store`_.
| (2): Only available with `Cloudflare Enterprise`_.

If needed, you can also implement your own client for other needs. Have a look
at the interfaces in namespace ``FOS\HttpCache\ProxyClient\Invalidation``.
Expand Down Expand Up @@ -353,13 +352,6 @@ the HttpDispatcher is not available for Cloudflare)::

$cacheInvalidator->invalidatePath('https://example.com/path')->flush();

.. note::

Cloudflare supports different cache purge methods depending on your account.
All Cloudflare accounts support purging the cache by URL and clearing all
cache items. You need a `Cloudflare Enterprise`_ account to purge by cache
tags or prefixes.

Zone identifier
^^^^^^^^^^^^^^^
To find the zone identifier for your domain request this from the API::
Expand Down Expand Up @@ -456,5 +448,4 @@ requests.
.. _Cloudflare: https://developers.cloudflare.com/cache/
.. _custom caching with page rules: https://support.cloudflare.com/hc/en-us/articles/360021023712-Best-Practices-Speed-up-your-Site-with-Custom-Caching-via-Cloudflare-Page-Rules
.. _Cloudflare Purge API: https://api.cloudflare.com/#zone-purge-all-files
.. _Cloudflare Enterprise: https://developers.cloudflare.com/cache/how-to/purge-cache#cache-tags-enterprise-only
.. _Cloudflare Purge by URL: https://developers.cloudflare.com/cache/how-to/purge-cache#purge-by-single-file-by-url
6 changes: 0 additions & 6 deletions src/ProxyClient/Cloudflare.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ public function __construct(
}

/**
* {@inheritdoc}
*
* Tag invalidation only available with Cloudflare enterprise account
*
* @see https://api.cloudflare.com/#zone-purge-files-by-cache-tags,-host-or-prefix
*/
public function invalidateTags(array $tags): static
Expand All @@ -91,8 +87,6 @@ public function invalidateTags(array $tags): static
/**
* {@inheritdoc}
*
* URL prefix only available with Cloudflare enterprise plans.
*
* The prefixes need to include the domain name, but not the protocol, e.g. "www.example.com/path"
*
* @see https://developers.cloudflare.com/api/resources/cache/methods/purge/
Expand Down
Loading