Browse Source

Merge pull request #3742 from gravitl/release-v1.2.0

Upsert cache network changes
Abhishek Kondur 3 weeks ago
parent
commit
c89f3a03d6
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
 }