diff --git a/src/public/javascripts/services/note_autocomplete.js b/src/public/javascripts/services/note_autocomplete.js index fd7f166c9..2dfcdd537 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.js index 9cdcf586b..e34923f53 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 slashes apiRoute(PUT, '/api/options/:name/:value*', optionsApiRoute.updateOption); apiRoute(PUT, '/api/options', optionsApiRoute.updateOptions); apiRoute(GET, '/api/options/user-themes', optionsApiRoute.getUserThemes);