mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	disable caching of note autocomplete for more accurate results
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user