Skip to content
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

fix: do not initialize cache when flag is off #8969

Merged
merged 3 commits into from
Dec 12, 2024
Merged

fix: do not initialize cache when flag is off #8969

merged 3 commits into from
Dec 12, 2024

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Dec 12, 2024

This feature is still in early alpha. We do not want to populate any cache on startup. We might not want to do it ever.

Copy link

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2024 1:16pm
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2024 1:16pm

Copy link
Contributor

@sjaanus, core features have been modified in this pull request. Please review carefully!

Copy link
Contributor

github-actions bot commented Dec 12, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@@ -158,7 +163,9 @@ export class ClientFeatureToggleCache {
}

private async onUpdateRevisionEvent() {
await this.pollEvents();
if (this.flagResolver.isEnabled('deltaApi')) {
await this.pollEvents();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only poll when flag is enabled

@sjaanus sjaanus merged commit c0925ea into main Dec 12, 2024
6 of 8 checks passed
@sjaanus sjaanus deleted the no-cache branch December 12, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants