mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-30 16:52:46 +00:00
设定OneDrive下载API请求缓存
This commit is contained in:
parent
f297f331f9
commit
fbbae45cfa
|
|
@ -54,6 +54,7 @@ export default function UploadDownload() {
|
|||
share_download_session_timeout:"0",
|
||||
onedrive_callback_check:"0",
|
||||
reset_after_upload_failed:"0",
|
||||
onedrive_source_timeout:"0",
|
||||
});
|
||||
|
||||
const handleCheckChange = name => event => {
|
||||
|
|
@ -443,6 +444,28 @@ export default function UploadDownload() {
|
|||
</FormControl>
|
||||
</div>
|
||||
|
||||
<div className={classes.form}>
|
||||
<FormControl >
|
||||
<InputLabel htmlFor="component-helper">
|
||||
OneDrive 下载请求缓存
|
||||
</InputLabel>
|
||||
<Input
|
||||
type={"number"}
|
||||
inputProps={{
|
||||
min:1,
|
||||
max:3659,
|
||||
step:1,
|
||||
}}
|
||||
value={options.onedrive_source_timeout}
|
||||
onChange={handleChange("onedrive_source_timeout")}
|
||||
required
|
||||
/>
|
||||
<FormHelperText id="component-helper-text">
|
||||
OneDrive 获取文件下载 URL 后可将结果缓存,减轻热门文件下载API请求频率
|
||||
</FormHelperText>
|
||||
</FormControl>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue