def _apply_cache(self, indexpath, cachepath, cache_id): idx = IndexerConnection(indexpath) cm = XapianCacheManager(cachepath, id=cache_id) idx.set_cache_manager(cm) idx.apply_cached_items() idx.close()
def _apply_cache(self, indexpath, cm): idx = IndexerConnection(indexpath) idx.set_cache_manager(cm) idx.apply_cached_items() idx.close()