[jQuery] [autocomplete] Turn off caching (still caches) för queries with charaters 'å', 'ä' and 'ö'
When I use the autocomplete plugin with cacheLength set to 1 it still
seems to caches som queries. Although I have only seen the problem
with queries containing the characters (swedish) å, ä or ö.
Maybe the problem lies there. To solve this I have to call the
flushCache function first in the formatTerm function which seems a bit
unnecessary.
Eg:
If I start to write "fö" it makes an ajax request and return say 25
rows. If I then continue and write an "r" I only get a list of 3 terms
although about 10 items (of the first 25) contains "för". This time no
ajax request was made which makes me believe that it is a problem with
the caching.
If I call flushCache in formatItem it always makes a new ajax request
with each modification of the search term and the correct results are
displayed.