summaryrefslogtreecommitdiffstats
path: root/theme/javascript/core
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-07 01:08:11 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-07 01:08:11 -0700
commitb7e04b547565f5535d9526c46b57c258d8d08b15 (patch)
treeaebef8fb975abc4959348cc17b7a8427fdcd4309 /theme/javascript/core
parentee8bf6dc4c934cd185ce88f0382e5f54ea4214fc (diff)
downloadgitbook-b7e04b547565f5535d9526c46b57c258d8d08b15.zip
gitbook-b7e04b547565f5535d9526c46b57c258d8d08b15.tar.gz
gitbook-b7e04b547565f5535d9526c46b57c258d8d08b15.tar.bz2
Don't use caching for search index
Diffstat (limited to 'theme/javascript/core')
-rw-r--r--theme/javascript/core/search.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/theme/javascript/core/search.js b/theme/javascript/core/search.js
index bc1a31b..4171660 100644
--- a/theme/javascript/core/search.js
+++ b/theme/javascript/core/search.js
@@ -17,16 +17,7 @@ define([
// Load complete index
var loadIndex = function() {
- var cacheKey = state.revision+":"+"searchIndex";
- var cache = storage.get(cacheKey);
-
- if (cache) return useIndex(cache);
-
$.getJSON(state.basePath+"/search_index.json")
- .then(function(index) {
- storage.set(cacheKey, index);
- return index;
- })
.then(useIndex);
};