fix(flags): added cache invalidation

This commit is contained in:
ITQ
2026-02-24 19:30:19 +03:00
parent 1c7753b71e
commit 2056041ee2
5 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
## Decide (`apps/decision/services.py`)
1. `flag` из cache/DB.
1. `flag` из cache/DB; при `FeatureFlag.default_value` update удаляется `flag:{key}`.
2. `active_experiment` из cache/DB.
3. Формируется cache key результата (`flag`, `subject`, digest атрибутов, ревизии `flag/experiment`).
4. При cache hit возвращается тот же outcome/reason/value с новым `decision_id`.