| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| modals | ||
| ModelsActions.jsx | ||
| ModelsColumnDefs.js | ||
| ModelsDescription.jsx | ||
| ModelsFilters.jsx | ||
| ModelsTable.jsx | ||
| ModelsTabs.jsx | ||
| index.jsx |
Summary
-------
1. Pricing generation
• `model/pricing.go`: skip any model whose `status != 1` when building
`pricingMap`, ensuring disabled models are never returned to the
front-end.
2. Cache refresh placement
• `controller/model_meta.go`
– Removed `model.RefreshPricing()` from pure read handlers
(`GetAllModelsMeta`, `SearchModelsMeta`).
– Kept refresh only in mutating handlers
(`Create`, `Update`, `Delete`), guaranteeing data is updated
immediately after an admin change while avoiding redundant work
on every read.
Result
------
Front-end no longer receives information about disabled models, and
pricing cache refreshes occur exactly when model data is modified,
improving efficiency and consistency.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| modals | Loading commit data... | |
| ModelsActions.jsx | Loading commit data... | |
| ModelsColumnDefs.js | Loading commit data... | |
| ModelsDescription.jsx | Loading commit data... | |
| ModelsFilters.jsx | Loading commit data... | |
| ModelsTable.jsx | Loading commit data... | |
| ModelsTabs.jsx | Loading commit data... | |
| index.jsx | Loading commit data... |