feat(cache): implement cache clearing for node operations and add delete methods
This commit is contained in:
@@ -111,5 +111,10 @@ func (l *UpdateServerLogic) UpdateServer(req *types.UpdateServerRequest) error {
|
||||
return errors.Wrapf(xerr.NewErrCode(xerr.DatabaseUpdateError), "update server error: %v", err.Error())
|
||||
}
|
||||
|
||||
return nil
|
||||
return l.svcCtx.NodeModel.ClearNodeCache(l.ctx, &node.FilterNodeParams{
|
||||
Page: 1,
|
||||
Size: 1000,
|
||||
ServerId: []int64{req.Id},
|
||||
Search: "",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user