Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
disable caching of note autocomplete for more accurate results
zadam9f29521ab8c1
diff --git a/src/public/javascripts/services/note_autocomplete.js b/src/public/javascripts/services/note_autocomplete.jsindex fd7f166c9c..2dfcdd537b 100644--- a/src/public/javascripts/services/note_autocomplete.js+++ b/src/public/javascripts/services/note_autocomplete.js@@ -92,7 +92,9 @@ function initNoteAutocomplete($el, options) {suggestion: function(suggestion) {return suggestion.highlighted;}- }+ },+ // we can't cache identical searches because notes can be created / renamed, new recent notes can be added+ cache: false}]);diff --git a/src/routes/routes.js b/src/routes/routes.jsindex 9cdcf586b4..e34923f53f 100644--- a/src/routes/routes.js+++ b/src/routes/routes.js@@ -153,6 +153,7 @@ function register(app) {apiRoute(GET, '/api/recent-changes', recentChangesApiRoute.getRecentChanges);apiRoute(GET, '/api/options', optionsApiRoute.getOptions);+ // FIXME: possibly change to sending value in the body to avoid host of HTTP server issues with slashesapiRoute(PUT, '/api/options/:name/:value*', optionsApiRoute.updateOption);apiRoute(PUT, '/api/options', optionsApiRoute.updateOptions);apiRoute(GET, '/api/options/user-themes', optionsApiRoute.getUserThemes);