Skip to content

[wrangler] Add worker cache configuration support#12625

Merged
WillTaylorDev merged 1 commit intomainfrom
willtaylor/wc-4500-worker-cache
Feb 24, 2026
Merged

[wrangler] Add worker cache configuration support#12625
WillTaylorDev merged 1 commit intomainfrom
willtaylor/wc-4500-worker-cache

Conversation

@WillTaylorDev
Copy link
Copy Markdown
Contributor

@WillTaylorDev WillTaylorDev commented Feb 21, 2026

Add top-level cache field for enabling cache before worker execution. Field is environment-inheritable and opt-in.

wrangler.toml:
[cache]
enabled = true

wrangler.jsonc:
{ "cache": { "enabled": true } }

Fixes #WC-4500


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: Not yet released

A picture of a cute animal (not mandatory, but encouraged)
image


Open with Devin

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 21, 2026

🦋 Changeset detected

Latest commit: 0d55bf8

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 21, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@12625

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@12625

miniflare

npm i https://pkg.pr.new/miniflare@12625

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@12625

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@12625

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@12625

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@12625

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@12625

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@12625

wrangler

npm i https://pkg.pr.new/wrangler@12625

commit: 0d55bf8

@WillTaylorDev WillTaylorDev force-pushed the willtaylor/wc-4500-worker-cache branch 4 times, most recently from 5273004 to 107aad3 Compare February 23, 2026 14:13
@WillTaylorDev WillTaylorDev marked this pull request as ready for review February 23, 2026 14:13
@WillTaylorDev WillTaylorDev requested review from a team as code owners February 23, 2026 14:13
@claude
Copy link
Copy Markdown
Contributor

claude bot commented Feb 23, 2026

Claude finished @WillTaylorDev's task —— View job


Changeset Review

✅ All changesets look good

The changeset properly:

  • Uses minor version type (appropriate for new configuration option)
  • Includes both affected packages (wrangler and @cloudflare/workers-utils)
  • Provides clear description with usage example in JSONC format
  • Contains no h1/h2/h3 headers (follows markdown rules)
  • Explicitly notes the experimental nature and that "The runtime API is not yet generally available"

Cuteness Report: This is a Fennec fox. Those ears are literally 40% of their body surface area and they use them for thermal regulation in the desert. Also for being adorable. 14/10 would protect from sandstorms.


Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@WillTaylorDev WillTaylorDev force-pushed the willtaylor/wc-4500-worker-cache branch from 107aad3 to 3c69122 Compare February 23, 2026 14:19
devin-ai-integration[bot]

This comment was marked as resolved.

@WillTaylorDev WillTaylorDev force-pushed the willtaylor/wc-4500-worker-cache branch 2 times, most recently from d13bcfa to 132b4b5 Compare February 23, 2026 14:37
Copy link
Copy Markdown
Contributor

@emily-shen emily-shen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! is this blocked on any ewc work?

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Feb 24, 2026
@emily-shen emily-shen added blocked Blocked on other work and removed blocked Blocked on other work labels Feb 24, 2026
@WillTaylorDev WillTaylorDev force-pushed the willtaylor/wc-4500-worker-cache branch from 132b4b5 to e008b12 Compare February 24, 2026 22:02
Add top-level cache field for enabling cache before worker execution.
Field is environment-inheritable and opt-in.

wrangler.toml:
[cache]
enabled = true

wrangler.jsonc:
{ "cache": { "enabled": true } }
@WillTaylorDev WillTaylorDev force-pushed the willtaylor/wc-4500-worker-cache branch from e008b12 to 0d55bf8 Compare February 24, 2026 22:22
@WillTaylorDev WillTaylorDev merged commit c0e9e08 into main Feb 24, 2026
36 of 40 checks passed
@WillTaylorDev WillTaylorDev deleted the willtaylor/wc-4500-worker-cache branch February 24, 2026 23:20
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Blocked on other work

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants