Skip to content

refactor: extract write_cache_metadata and place_in_cache helpers#24

Merged
raiderrobert merged 4 commits into
mainfrom
refactor/cache-extract-helpers
Feb 13, 2026
Merged

refactor: extract write_cache_metadata and place_in_cache helpers#24
raiderrobert merged 4 commits into
mainfrom
refactor/cache-extract-helpers

Conversation

@raiderrobert

Copy link
Copy Markdown
Owner

Summary

  • Extract write_cache_metadata() and place_in_cache() from get_or_clone()
  • Reduces get_or_clone() from ~65 lines to ~30, making the high-level flow immediately clear
  • Each helper is independently documented and testable

Test plan

  • All existing cache tests pass unchanged
  • Full test suite green

Break up get_or_clone() by extracting metadata serialization and
cache placement into focused helper functions, improving readability
and making each step independently testable.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Feb 13, 2026

Copy link
Copy Markdown

Deploying diecut with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5cd5234
Status:⚡️  Build in progress...

View logs

@raiderrobert raiderrobert merged commit 8907726 into main Feb 13, 2026
2 of 3 checks passed
@raiderrobert raiderrobert deleted the refactor/cache-extract-helpers branch February 13, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant