Browse Source

cache upsert network data

abhishek9686 3 weeks ago
parent
commit
3924feff74
1 changed files with 3 additions and 0 deletions
  1. 3 0
      logic/networks.go

+ 3 - 0
logic/networks.go

@@ -639,6 +639,9 @@ func UpsertNetwork(network models.Network) error {
 	if err != nil {
 		return err
 	}
+	if servercfg.CacheEnabled() {
+		storeNetworkInCache(network.NetID, network)
+	}
 	return nil
 }