Skip to content

docs: clarifying disableCache vs maxCachedContexts#1247

Merged
joker23 merged 1 commit intomainfrom
skz/sdk-2135/disable-cache-docs
Apr 7, 2026
Merged

docs: clarifying disableCache vs maxCachedContexts#1247
joker23 merged 1 commit intomainfrom
skz/sdk-2135/disable-cache-docs

Conversation

@joker23
Copy link
Copy Markdown
Contributor

@joker23 joker23 commented Apr 6, 2026

This PR aims to clarify the usage of disableCache and maxCachedContexts in client side sdks.


Note

Low Risk
Low risk documentation-only change that clarifies cache configuration semantics without modifying runtime behavior.

Overview
Clarifies the LDOptions API docs for persistent caching by distinguishing maxCachedContexts=0 (disables caching and prunes existing cached entries) from disableCache=true (suppresses cache read/write while leaving existing data intact). Also updates wording to explicitly mention fallback flag values and adds @remarks guidance on when to use each option.

Reviewed by Cursor Bugbot for commit 42a5ae6. Bugbot is set up for automated code reviews on this repo. Configure here.


Open with Devin

@joker23 joker23 requested a review from a team as a code owner April 6, 2026 21:31
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25661 bytes
Compressed size limit: 29000
Uncompressed size: 126143 bytes

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179331 bytes
Compressed size limit: 200000
Uncompressed size: 829227 bytes

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31556 bytes
Compressed size limit: 34000
Uncompressed size: 112044 bytes

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 37015 bytes
Compressed size limit: 38000
Uncompressed size: 202741 bytes

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@joker23 joker23 merged commit 213a40a into main Apr 7, 2026
49 of 50 checks passed
@joker23 joker23 deleted the skz/sdk-2135/disable-cache-docs branch April 7, 2026 16:59
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.

2 participants