Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/content/docs/hyperdrive/configuration/query-caching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ SELECT LASTVAL(), * FROM articles LIMIT 50;

## Default cache settings
Copy link
Member

Choose a reason for hiding this comment

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

How does someone configure these settings?

Copy link
Contributor

@thomasgauvin thomasgauvin Oct 9, 2024

Choose a reason for hiding this comment

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

Could be done in a separate PR, it's via wrangler hyperdrive update --max-age --swr


:::note

Hyperdrive will support configuring both the `max_age` and `stale_while_revalidate` values in the near future.

:::

The default caching behaviour for Hyperdrive is defined as below:

- `max_age` = 60 seconds (1 minute)
Expand Down
Loading