diff --git a/database/pgsql/feature.go b/database/pgsql/feature.go index a5e8f5b0..d09093b2 100644 --- a/database/pgsql/feature.go +++ b/database/pgsql/feature.go @@ -127,6 +127,11 @@ func (pgSQL *pgSQL) insertFeatureVersion(featureVersion database.FeatureVersion) if newOrExisting == "exi" { // That featureVersion already exists, return its id. tx.Commit() + + if pgSQL.cache != nil { + pgSQL.cache.Add(cacheIndex, featureVersion.ID) + } + return featureVersion.ID, nil }