-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A flag to prevent caching #562
Comments
I'll look to make request caching something that's configurable for v0.10.1. |
+1 for a way to clear cache. Or even better scenario: On page load:
This is important in case when you add new content to the results, after it is cached - it will simply not show up. Is this possible? What do you think of it @jharding ? |
Yet another +1. My client is using typeahead to show hotel listings quickly and easily for a search/navigation tool, but since they update daily, results aren't seen immediately. Is there any sort of expected timeline for 0.10.1? |
@onebrightlight are you talking about |
I am pretty sure he does, and so am I. I don't know whether my solution is best-practice/doable, but I find it quite good. It will allow instant results, and the (eventually) new results will be updated async. What do you think of it? |
What's your solution @edukarma? The one suggested by @canfiax? I think that's a solid solution and I wouldn't be opposed to implementing something along those lines. |
#521 Is there a way to flag specific cached items to not be cached? Thanks. |
@krazyjakee just to be clear, are you using |
We are using remote. |
FYI I decided against adding a flag for preventing the caching of remote responses, instead I've added |
Nice! Will it also be possible to clear the prefetched data? For instance, I use typeahead as a Wordpress plugin to search your pages. I am currently avoiding using prefetch, even though it would be the best solution. If you edited a page name, or simply created a new, it would not show up in results. |
Yep, take a look at #703 for more details. |
When creating the instance for typahead, create a unique 'name' value. var randLetter = String.fromCharCode(65 + Math.floor(Math.random() * 26)); $('.class').typeahead({ This is not preventing caching, but instead will create a semi unique name for typeahead new instances. The above randomUniqueId code will not prevent collision and is not 100% unique, but you get the idea. |
In our search results we would like to include pseudo-results.
For example:
The problem is that it is also caching these locally and intruding on other searches. Is it possible to prevent caching but only for those items?
The text was updated successfully, but these errors were encountered: