mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
Do not force index update when configure backend on plugin load
- Backend can handle incremental updates - Avoid khoj usability delay by avoiding recomputed everytime vault opened
This commit is contained in:
@@ -108,7 +108,7 @@ export async function updateKhojBackend(khojUrl: string, khojConfig: Object) {
|
|||||||
// Save khojConfig on khoj backend at khojConfigUrl
|
// Save khojConfig on khoj backend at khojConfigUrl
|
||||||
await request(requestContent)
|
await request(requestContent)
|
||||||
// Refresh khoj search index after updating config
|
// Refresh khoj search index after updating config
|
||||||
.then(_ => request(`${khojUrl}/api/update?t=markdown&force=true`));
|
.then(_ => request(`${khojUrl}/api/update?t=markdown`));
|
||||||
}
|
}
|
||||||
|
|
||||||
function getIndexDirectoryFromBackendConfig(khojConfig: any) {
|
function getIndexDirectoryFromBackendConfig(khojConfig: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user