Skip to content

v3.7.12: Clear page cache on --build-index (#129)

Choose a tag to compare

@chedong chedong released this 11 Jun 07:16
· 143 commits to master since this release

Fixed

  • #129 (part 3): --build-index 后搜索结果仍为空

    rebuildSearchIndex() 清空了 search_ftssearch_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 单元和集成测试全部通过