mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
disable caching of note autocomplete for more accurate results
This commit is contained in:
parent
c1ce0c6b22
commit
9f29521ab8
@ -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
|
||||
}
|
||||
]);
|
||||
|
||||
|
@ -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 slashes
|
||||
apiRoute(PUT, '/api/options/:name/:value*', optionsApiRoute.updateOption);
|
||||
apiRoute(PUT, '/api/options', optionsApiRoute.updateOptions);
|
||||
apiRoute(GET, '/api/options/user-themes', optionsApiRoute.getUserThemes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user