Skip to content

[Cache expiration] #383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Mar 28, 2025
Merged
Changes from 3 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0cb3a1f
Move validateCache call from splitChangesUpdater to syncManagerOnline
EmilianoSanchez Dec 18, 2024
d392cc8
Replace splits::checkCache method with storage::validateCache method
EmilianoSanchez Dec 18, 2024
8938334
Extract validation logic into SplitsCacheInLocal::validateCache method
EmilianoSanchez Dec 18, 2024
1b061eb
Simplify SplitsCacheInLocal::setChangeNumber moving clear logic to Sp…
EmilianoSanchez Dec 18, 2024
ffd724d
Remove SplitsCacheInLocal::storageHash
EmilianoSanchez Dec 18, 2024
e13f819
Move expirationTimestamp logic inside validateCache method
EmilianoSanchez Dec 18, 2024
b32e3ee
Move validateCache logic outside SplitsCacheInLocal
EmilianoSanchez Dec 18, 2024
679f841
Polishing
EmilianoSanchez Dec 18, 2024
6070b54
Merge branch 'cache_expiration_move_validateCache_call' into cache_ex…
EmilianoSanchez Dec 18, 2024
6605bfc
Refactor validateCache function
EmilianoSanchez Dec 18, 2024
9b8d36a
Clear segments and largeSegments caches
EmilianoSanchez Dec 18, 2024
87fbc4f
expirationDays configuration
EmilianoSanchez Dec 18, 2024
aca35fe
clearOnInit configuration
EmilianoSanchez Dec 18, 2024
534d6ca
Reuse Date.now() result
EmilianoSanchez Dec 19, 2024
6451cda
Handle clearOnInit case with older version of the SDK where lastClear…
EmilianoSanchez Dec 19, 2024
956c1df
Handle no cache: cache should not be clearer
EmilianoSanchez Dec 19, 2024
28b7fb9
Add unit test
EmilianoSanchez Dec 19, 2024
6dc1e61
rc
EmilianoSanchez Dec 19, 2024
5ea10ad
Add changelog entry
EmilianoSanchez Dec 19, 2024
7100734
Fix typo
EmilianoSanchez Dec 20, 2024
49c7f52
Merge pull request #378 from splitio/cache_expiration_move_validateCa…
EmilianoSanchez Dec 26, 2024
edb8995
Merge pull request #379 from splitio/cache_expiration_refactor_valida…
EmilianoSanchez Dec 26, 2024
760e2d0
Merge branch 'cache_expiration_baseline' into cache_expiration_valida…
EmilianoSanchez Dec 26, 2024
4069c24
Merge pull request #380 from splitio/cache_expiration_validateExpirat…
EmilianoSanchez Dec 26, 2024
4c7e781
Updated SDK_READY_FROM_CACHE event when using LOCALSTORAGE storage ty…
EmilianoSanchez Jan 2, 2025
d5a5eaa
rc
EmilianoSanchez Jan 2, 2025
d854156
Update changelog entry
EmilianoSanchez Jan 2, 2025
757778f
Merge branch 'main' into cache_expiration_baseline
EmilianoSanchez Jan 13, 2025
d56ea52
Merge branch 'cache_expiration_baseline' into SDKS-9171_sdk_ready_fro…
EmilianoSanchez Jan 13, 2025
1afa2f8
Merge branch 'SDKS-9171_sdk_ready_from_cache' into release_v2.1.0
EmilianoSanchez Jan 13, 2025
20d97aa
rc
EmilianoSanchez Jan 13, 2025
3ba1eb1
Merge branch 'main' into cache_expiration_baseline
EmilianoSanchez Jan 17, 2025
96e5aa6
Merge branch 'cache_expiration_baseline' into SDKS-9171_sdk_ready_fro…
EmilianoSanchez Jan 17, 2025
1cc5ad6
Remove unnecessary comment
EmilianoSanchez Feb 5, 2025
e57e045
Merge branch 'development' into cache_expiration_baseline
EmilianoSanchez Feb 26, 2025
eb408ad
Merge pull request #385 from splitio/SDKS-9171_sdk_ready_from_cache
EmilianoSanchez Mar 28, 2025
65dd894
Merge branch 'development' into cache_expiration_baseline
EmilianoSanchez Mar 28, 2025
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
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Added two new configuration options for the SDK storage in browsers when using storage type `LOCALSTORAGE`:
- `storage.expirationDays` to specify the validity period of the rollout cache.
- `storage.clearOnInit` to clear the rollout cache on SDK initialization.
- Bugfixing - Properly handle rejected promises when using targeting rules with segment matchers in consumer modes (e.g., Redis and Pluggable storages).

2.0.2 (December 3, 2024)
- Updated the factory `init` and `destroy` methods to support re-initialization after destruction. This update ensures compatibility of the React SDK with React Strict Mode, where the factory's `init` and `destroy` effects are executed an extra time to validate proper resource cleanup.
Expand Down
Loading