| 812 | } |
| 813 | |
| 814 | void removeCache(const std::string &path) { |
| 815 | if (g_config->cache.directory.size()) { |
| 816 | std::lock_guard lock(g_index_mutex); |
| 817 | g_index.erase(path); |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | std::optional<std::string> loadIndexedContent(const std::string &path) { |
| 822 | if (g_config->cache.directory.empty()) { |
no test coverage detected