feat: add InvalidatePricingCache function and call it in updateOption#2685
feat: add InvalidatePricingCache function and call it in updateOption#26850-don wants to merge 1 commit intoQuantumNous:mainfrom
Conversation
WalkthroughA new public function Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add missing translation keys for all non-English languages: - zh-TW: 27 keys (plurals, cache, recharge) - fr: 98 keys (disk cache, OAuth, preferences, performance monitor) - ru: 98 keys (disk cache, OAuth, preferences, performance monitor) - ja: 103 keys (disk cache, OAuth, preferences, performance monitor) - vi: 99 keys (disk cache, OAuth, preferences, performance monitor) Fix SemiLocaleWrapper to map all supported languages (zh-TW, fr, ru, ja, vi) to their Semi Design locale counterparts instead of only zh/en, which caused UI components like pagination to show Chinese labels for non-Chinese/English users.
|
Closing — the InvalidatePricingCache change was already merged, and the remaining i18n commit is covered by #2958. |
When updating model ratios or prices via the
/api/option/endpoint, the/api/pricingendpoint continues returning stale cached data for up to 1 minute.This PR adds cache invalidation when ratio-related options are updated, ensuring the pricing endpoint immediately reflects the new values.
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.