If the default will remain unchanged, I would propose the following changes for an improved onboardi

If the default will remain unchanged, I would propose the following changes for an improved onboarding experience with fewer gotchas.
  1. Update "Getting started" wording - currently it says "Hyperdrive [...] can cache the most common read queries, improving performance[...].". To me this strongly suggests that it defaults to off and is opt in.
  2. Add a note to "Getting started" where the user is instructed to run wrangler hyperdrive create -- something like "To disable and opt out of caching add --caching-disabled. You can also specify --max-age in seconds before query results are evicted (default 60 seconds)". Maybe the word "caching" would be linked to the cache docs.
I did notice that the --help has great documentation btw. I should have read through that before issuing the command 🙂
Was this page helpful?