BloodHound ignoring TTL on prefetch
See original GitHub issueWe are experiencing an issue with bloodhound’s cache, which is not refreshed after the suggested TTL. even at the low settings below:
var users = new Bloodhound({
datumTokenizer: function(d) {
return d.tokens;
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
prefetch: 'URL',
ttl:1
});
I assume this should refresh the cache after every millisecond. However, it keeps the cache even after several refreshes. There is also no trace of a request to the URL either.
Issue Analytics
- State:
- Created 10 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Unanswered 'bloodhound' Questions - Stack Overflow
I've been using Bloodhound with the prefetch [docs] option defined. This works fine, except when I add content to the json file being...
Read more >FreePBX / framework / 2d520a6b30d - FreePBX GIT
... Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace('value'),queryTokenizer:Bloodhound.tokenizers.whitespace,limit:10,prefetch:{ttl:1000 ...
Read more >US6557054B2 - Method and system for distributing updates ...
A method for distributing information to a plurality of uncoordinated user stations each of which is configured for communications with a multiplicity of ......
Read more >Incident Response - Hybrid Analysis
... https://track.alde1.mlpnd.com/click/20661594739626/112544863/2066/6719673 (PID: 3964). iexplore.exe SCODEF:3964 CREDAT:275457 /prefetch:2 (PID: 2980) ...
Read more >Overview - Joe Sandbox
EXE' SCODEF:6384 CREDAT:17410 /prefetch:2 MD5: ... name="__/resources/shared/scripts/courselist.json__data__ttl__" value="1617426547228" ... Bloodhound=b(a.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is what I had to do:
Docs say “Initialization entails adding the data provided by local and prefetch to the internal search index” so I believe it will check local storage before any of your settings. And if your last settings put data in there with a timestamp, then it will get it.
@andrewevans this solution is fine if you’re the only user of the application.