mirror of
https://github.com/gravitl/netmaker.git
synced 2025-12-24 13:28:22 +08:00
cache upsert network data
This commit is contained in:
@@ -639,6 +639,9 @@ func UpsertNetwork(network models.Network) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if servercfg.CacheEnabled() {
|
||||
storeNetworkInCache(network.NetID, network)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user