mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Allow caching on single PutObject (#8100)
This commit is contained in:
@@ -1053,6 +1053,9 @@ func (web *webAPIHandlers) Upload(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
putObject := objectAPI.PutObject
|
||||
if web.CacheAPI() != nil {
|
||||
putObject = web.CacheAPI().PutObject
|
||||
}
|
||||
|
||||
objInfo, err := putObject(context.Background(), bucket, object, pReader, opts)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user