Skip to content

Commit ed27f13

Browse files
[Cache] Updates versioning for cache (#18038)
* Updates versioning for cache * Adds note to purge everything * Update src/content/docs/cache/how-to/cache-rules/index.mdx Co-authored-by: Jun Lee <[email protected]> --------- Co-authored-by: Jun Lee <[email protected]>
1 parent 49684d6 commit ed27f13

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

src/content/docs/cache/how-to/cache-rules/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Use Cache Rules to customize cache settings on Cloudflare. Cache Rules allows yo
99

1010
Cache Rules can be created in the [dashboard](/cache/how-to/cache-rules/create-dashboard/), via [API](/cache/how-to/cache-rules/create-api/) or [Terraform](/cache/how-to/cache-rules/terraform-example/).
1111

12+
:::note
13+
Rules can be versioned. Refer to the [Version Management](/version-management/) documentation for more information.
14+
:::
15+
16+
1217
## Rules templates
1318

1419
<Render file="rules-templates" product="rules" />

src/content/docs/cache/how-to/purge-cache/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ Cloudflare's Instant Purge ensures that updates to your content are reflected im
1010

1111
<DirectoryListing />
1212

13+
:::note
14+
If versioning is active on your zone and multiple environments are configured, you can select the specific environment you want to purge. For more details, refer to the [Version Management](/version-management/) documentation.
15+
:::
16+
1317
<FeatureTable id="cache.purge_cache" />

src/content/docs/cache/how-to/purge-cache/purge-everything.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Purging everything instantly clears all resources from your CDN cache in all Clo
1515
3. Under **Purge Cache**, select **Purge Everything**. A warning window appears.
1616
4. If you agree, select **Purge Everything**.
1717

18+
:::note
19+
When purging everything for a non-production cache environment, all files for that specific cache environment will be purged. However, when purging everything for the production environment, all files will be purged across all environments.
20+
:::
21+
1822
## Resulting cache status
1923

2024
Purge Everything invalidates the resource, resulting in the `CF-Cache-Status` header indicating [`EXPIRED`](/cache/concepts/cache-responses/#expired) for subsequent requests.

src/content/partials/version-management/product-limitations.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ Version Management does not currently support or have limited support for the fo
2222

2323
<Details header="Cache">
2424

25-
- [Cache](/workers/runtime-apis/cache/) configurations are versioned, but cache keys are not.
26-
- Caching a new URL on staging would cache it for production as well.
27-
- Purging cache on staging would purge it on production too.
28-
- Promoting a new version to production would wipe all exiting cache.
25+
- [Cache Reserve](/cache/advanced-configuration/cache-reserve/) is intended for production use only.
26+
- [Tiered Cache](/cache/how-to/tiered-cache/) does not support versioning.
2927

3028
</Details>
3129

0 commit comments

Comments
 (0)