mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	缓存文件实现Sendfile
This commit is contained in:
		@@ -45,6 +45,13 @@
 | 
			
		||||
                    <input type="text" name="fileOpenFileCacheMax" maxlength="6" value="0" style="width: 10em"/>
 | 
			
		||||
                    <p class="comment">保持缓存文件句柄,提升缓存文件打开速度,建议数量是缓存文件数量的10%。</p>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td class="color-border" v-show="teaIsPlus">开启Sendfile</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    <checkbox name="fileEnableSendfile"></checkbox>
 | 
			
		||||
                    <p class="comment"><plus-label></plus-label>使用sendfile提升发送缓存文件的效率。</p>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
		</tbody>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -54,6 +54,13 @@
 | 
			
		||||
                        <input type="text" name="fileOpenFileCacheMax" v-model="fileOpenFileCacheMax" maxlength="6" value="0" style="width: 10em"/>
 | 
			
		||||
                        <p class="comment">保持缓存文件句柄,提升缓存文件打开速度,建议数量是缓存文件数量的10%。</p>
 | 
			
		||||
                    </td>
 | 
			
		||||
                </tr>
 | 
			
		||||
                <tr>
 | 
			
		||||
                    <td class="color-border" v-show="teaIsPlus">开启Sendfile</td>
 | 
			
		||||
                    <td>
 | 
			
		||||
                        <checkbox name="fileEnableSendfile" v-model="cachePolicy.options.enableSendfile"></checkbox>
 | 
			
		||||
                        <p class="comment"><plus-label></plus-label>使用sendfile提升发送缓存文件的效率。</p>
 | 
			
		||||
                    </td>
 | 
			
		||||
                </tr>
 | 
			
		||||
			</tbody>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user