Skip to content

Conversation

@eric-zaharia
Copy link
Contributor

@eric-zaharia eric-zaharia commented Feb 12, 2026

🧭 What and Why

🎟 JIRA Ticket: API-300

Changes included:

  • Modified documentation to avoid caching bugs
  • Added a warning in the requestsCache to avoid incorrect usage

@eric-zaharia eric-zaharia self-assigned this Feb 12, 2026
@eric-zaharia eric-zaharia requested a review from a team as a code owner February 12, 2026 10:15
@algolia-bot
Copy link
Collaborator

algolia-bot commented Feb 12, 2026

✔️ Code generated!

Name Link
🪓 Triggered by a1daaa437f3a87b401ab2d1d57aed1a6b108f360
🍃 Generated commit 13f9cbe080bb49993de86cf9a011acba95e5be5f
🌲 Generated branch generated/fix/javascript-request-cache
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
javascript 2412

@eric-zaharia eric-zaharia enabled auto-merge (squash) February 12, 2026 11:50
Comment on lines +112 to +115
* Make sure to use a non-serializing cache implementation, such as:
*
* - `createMemoryCache({ serializable: false })`
* - `createNullCache()`
Copy link
Collaborator

Choose a reason for hiding this comment

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

More precisely, createNullCache() is not a non-serializing cache 😄
But it's a good option, so maybe something like:

Suggested change
* Make sure to use a non-serializing cache implementation, such as:
*
* - `createMemoryCache({ serializable: false })`
* - `createNullCache()`
* Make sure to use a non-serializing cache implementation, such as `createMemoryCache({ serializable: false })` or to disable request caching with `createNullCache()`

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.

3 participants