mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03: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