mirror of https://gitee.com/bigwinds/arangodb
ie + edge cache fixes
This commit is contained in:
parent
7e84980153
commit
0c9e0e7c66
|
@ -179,7 +179,9 @@
|
|||
|
||||
arangoHelper.setDocumentStore(this.arangoDocumentStore);
|
||||
|
||||
this.arangoCollectionsStore.fetch();
|
||||
this.arangoCollectionsStore.fetch({
|
||||
cache: false
|
||||
});
|
||||
|
||||
window.spotlightView = new window.SpotlightView({
|
||||
collection: this.arangoCollectionsStore
|
||||
|
@ -191,6 +193,7 @@
|
|||
this.notificationList = new window.NotificationCollection();
|
||||
|
||||
this.currentDB.fetch({
|
||||
cache: false,
|
||||
success: function() {
|
||||
self.naviView = new window.NavigationView({
|
||||
database: self.arangoDatabase,
|
||||
|
@ -485,6 +488,7 @@
|
|||
|
||||
if (this.foxxList.length === 0) {
|
||||
this.foxxList.fetch({
|
||||
cache: false,
|
||||
success: function() {
|
||||
callback();
|
||||
}
|
||||
|
@ -527,6 +531,7 @@
|
|||
});
|
||||
}
|
||||
this.arangoCollectionsStore.fetch({
|
||||
cache: false,
|
||||
success: function () {
|
||||
self.collectionsView.render();
|
||||
}
|
||||
|
@ -542,6 +547,7 @@
|
|||
return;
|
||||
}
|
||||
this.arangoCollectionsStore.fetch({
|
||||
cache: false,
|
||||
success: function () {
|
||||
self.indicesView = new window.IndicesView({
|
||||
collectionName: colname,
|
||||
|
@ -563,6 +569,7 @@
|
|||
return;
|
||||
}
|
||||
this.arangoCollectionsStore.fetch({
|
||||
cache: false,
|
||||
success: function () {
|
||||
self.settingsView = new window.SettingsView({
|
||||
collectionName: colname,
|
||||
|
@ -585,6 +592,7 @@
|
|||
}
|
||||
this.arangoCollectionsStore.fetch({
|
||||
success: function () {
|
||||
cache: false,
|
||||
self.infoView = new window.InfoView({
|
||||
collectionName: colname,
|
||||
collection: self.arangoCollectionsStore.findWhere({
|
||||
|
|
|
@ -12,11 +12,6 @@
|
|||
}
|
||||
});
|
||||
|
||||
//set ajax cache globally to false. otherwise IE + EDGE will cache everything
|
||||
$.ajaxSetup({
|
||||
cache: false
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
window.App = new window.Router();
|
||||
Backbone.history.start();
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
refetchCollections: function() {
|
||||
var self = this;
|
||||
this.collection.fetch({
|
||||
cache: false,
|
||||
success: function() {
|
||||
self.checkLockedCollections();
|
||||
}
|
||||
|
@ -164,6 +165,7 @@
|
|||
updateCollectionsView: function() {
|
||||
var self = this;
|
||||
this.collection.fetch({
|
||||
cache: false,
|
||||
success: function() {
|
||||
self.render();
|
||||
}
|
||||
|
|
|
@ -48,7 +48,10 @@
|
|||
},
|
||||
|
||||
initialize: function() {
|
||||
this.collection.fetch({async: true});
|
||||
this.collection.fetch({
|
||||
async: true,
|
||||
cache: false
|
||||
});
|
||||
},
|
||||
|
||||
checkBoxes: function (e) {
|
||||
|
@ -236,6 +239,7 @@
|
|||
updateDatabases: function() {
|
||||
var self = this;
|
||||
this.collection.fetch({
|
||||
cache: false,
|
||||
success: function() {
|
||||
self.render();
|
||||
window.App.handleSelectDatabase();
|
||||
|
|
|
@ -17,7 +17,10 @@
|
|||
|
||||
initialize: function (options) {
|
||||
this.userCollection = options.userCollection;
|
||||
this.userCollection.fetch({async: true});
|
||||
this.userCollection.fetch({
|
||||
cache: false,
|
||||
async: true
|
||||
});
|
||||
this.userCollection.bind("change:extra", this.render.bind(this));
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue