v3.7.12: Clear page cache on --build-index (#129)
Fixed
-
#129 (part 3):
--build-index后搜索结果仍为空rebuildSearchIndex()清空了search_fts和search_index_meta表,但未清空cache表。当搜索先于索引重建执行时,空结果被缓存;之后即使重建了索引、修复了 macOS apropos 解析,旧的空缓存仍一直命中。修复:
--build-index时清空整个cache表,因为所有缓存内容(搜索结果、man page 搜索回退等)都依赖 FTS5 数据。
Previous fixes for #129
- v3.7.10:
rebuildSearchIndex()正则\s+\(→\s*\( - v3.7.11:
parseAproposLine()+getSearchPage()搜索解析同样修复
Test
- 296/296 单元和集成测试全部通过