Site: feed the optimizer a trailing percentile solar scale (#32849)

This commit is contained in:
Ingo 2026-08-16 21:17:29 +02:00 • committed by GitHub
parent bc38df1ed6
commit 47fd73be33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 133 additions and 22 deletions

View file

@ -7,6 +7,7 @@ import (
"github.com/evcc-io/evcc/core/metrics"
"github.com/evcc-io/evcc/server/db"
"github.com/evcc-io/evcc/util"
)
// deleteResult reports the number of affected rows
@ -58,6 +59,9 @@ func deleteEnergyHandler(w http.ResponseWriter, r *http.Request) {
return
}
// invalidate cached values (e.g. the solar scale) derived from the deleted history
util.ResetCached()
jsonWrite(w, deleteResult{rows})
}