新增搜索结果缓存功能
- 新增 search_cache 数据库表存储搜索缓存 - 搜索前优先查询缓存,命中则直接返回 - 缓存默认有效期7天,可配置 - 前端支持'使用缓存'开关选项 - 显示缓存状态提示 - 支持自动清理过期缓存
This commit is contained in:
@@ -42,6 +42,10 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="search-options">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" id="use-cache" checked>
|
||||
<span>使用缓存结果(7天有效)</span>
|
||||
</label>
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" id="auto-fetch" checked>
|
||||
<span>搜索后自动抓取内容</span>
|
||||
|
||||
Reference in New Issue
Block a user