You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A queue must be setup for projects using revalidation (either Time based or On-demand).
428
+
A queue must be setup for projects using Time-Based revalidation.
429
+
It is not needed when revalidation is not used nor only On-Demand revalidation is used.
429
430
430
431
**Configure the queue**
431
432
@@ -719,6 +720,11 @@ This component can either call the Cache API's purge function directly or route
719
720
720
721
Cache purge are only called when you call `revalidateTag`, `revalidatePath` or `res.revalidate` in the pages router. It is not called for ISR revalidation.
721
722
723
+
To use cache purge, you need to define the following wrangler secrets:
724
+
725
+
-`CACHE_PURGE_API_TOKEN` should be set to [an API token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/) with the `Cache Purge` permission
726
+
-`CACHE_PURGE_ZONE_ID` should be set to the [zone ID of your deployment domain](https://developers.cloudflare.com/fundamentals/account/find-account-and-zone-ids/)
727
+
722
728
Below is an example configuration for integrating the cache purge component in your `open-next.config.ts`:
0 commit comments