fix cache ttl#726
Conversation
🦋 Changeset detectedLatest commit: b4a44db The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Claude Code ReviewIssues:
Minor:
|
commit: |
95e6822 to
c8dfade
Compare
cc3ed3c to
d7c1ca5
Compare
This update adds documentation for the cacheTtl option in the useAgent hook, which was previously undocumented. The documentation clarifies: - Default cache behavior (5 minute TTL) - How to customize cache duration with cacheTtl - How to disable caching by setting cacheTtl to 0 - Cache invalidation with queryDeps This corresponds to a bug fix in cloudflare/agents PR #726 that corrected the behavior when cacheTtl is set to 0 (previously incorrectly cached for 5 minutes instead of disabling cache). Related: cloudflare/agents#726 🤖 Generated with Claude Code Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
|
||
| it("should respect cacheTtl of 0 (immediate expiration)", async () => { | ||
| const key = ["test", "default", "dep1"]; | ||
| const key = "test-key-1"; |
There was a problem hiding this comment.
maybe silly question but is this breaking?
No description provided.