KamoCRM

Invalidate org cache after feature toggle to reflect changes immediately

Fixkamo-internal
Shipped
26 மார்ச், 2026 அன்று 9:37 PM UTC
Author
kamo
Commit
0316d20

The org API route caches organization data in Redis for 24h. After enabling or disabling an app, the stale cache caused feature flags to remain false, making settings pages redirect to /settings. Now FeaturesManager calls /api/org/invalidate-cache after each toggle to clear the cached org data before router.refresh() re-fetches it fresh from the backend.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing