How fast cloudflare can invalidate cache

Hi,

We have a use case in which we serve a user-generated page globally to many viewers
and most of the time it does not change but currently, we can’t cache the content’s reliability
as it might change at any time

We are thinking of using the cache control header to cache contents for a few hours dynamically
and on updates sent a purge request with a URL prefix

would like to know how fast Cloudflare can invalidate the contents and is their any API to know the status of the purge request

Purging Cache for particular URL resource via Cloudflare Dashboard is quickly, within seconds. The same applies for the Cloudflare API.

Helpful articles:

Cloudflare API for Purging the Cache:

You could also explore more and create some advanced solutions for your case related to the Cache Rules: