mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge branch 'fix_cache_bust' into dev
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
Provides factory methods to assemble the Galaxy web application
|
||||
"""
|
||||
|
||||
import sys
|
||||
import atexit
|
||||
import time
|
||||
import os
|
||||
import os.path
|
||||
import atexit
|
||||
import sys
|
||||
|
||||
from paste import httpexceptions
|
||||
import pkg_resources
|
||||
@@ -114,6 +115,8 @@ def app_factory( global_conf, **kwargs ):
|
||||
except:
|
||||
pass
|
||||
|
||||
app.server_starttime = int(time.time()) # used for cachebusting
|
||||
|
||||
if not app.config.is_uwsgi:
|
||||
postfork_setup()
|
||||
|
||||
|
||||
+2
-1
@@ -79,7 +79,8 @@
|
||||
shim: {
|
||||
"libs/underscore": { exports: "_" },
|
||||
"libs/backbone/backbone": { exports: "Backbone" }
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -89,7 +89,8 @@
|
||||
shim: {
|
||||
"libs/underscore": { exports: "_" },
|
||||
"libs/backbone/backbone": { exports: "Backbone" }
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
baseUrl: "${h.url_for('/static/scripts')}",
|
||||
shim: {
|
||||
"libs/backbone/backbone": { exports: "Backbone" },
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
|
||||
require(['mvc/data'], function(data) {
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
baseUrl: "${h.url_for('/static/scripts')}",
|
||||
shim: {
|
||||
"libs/backbone/backbone": { exports: "Backbone" },
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
|
||||
require([ 'mvc/data' ], function( data ) {
|
||||
|
||||
@@ -97,7 +97,8 @@
|
||||
"libs/underscore": { exports: "_" },
|
||||
"libs/d3": { exports: "d3" },
|
||||
"libs/backbone/backbone": { exports: "Backbone" },
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
var galaxy_config = ${ h.dumps( self.galaxy_config ) };
|
||||
|
||||
|
||||
@@ -49,7 +49,8 @@
|
||||
hdaJSON = ${h.dumps( hda_dicts )};
|
||||
|
||||
require.config({
|
||||
baseUrl : "${h.url_for( '/static/scripts' )}"
|
||||
baseUrl : "${h.url_for( '/static/scripts' )}",
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
})([ 'mvc/history/history-panel-annotated' ], function( panelMod ){
|
||||
// history module is already in the dpn chain from the panel. We can re-scope it here.
|
||||
var historyModel = require( 'mvc/history/history-model' ),
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
$embeddedHistory = $( thisScript ).prev();
|
||||
|
||||
require.config({
|
||||
baseUrl : "${h.url_for( '/static/scripts' )}"
|
||||
baseUrl : "${h.url_for( '/static/scripts' )}",
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
require([ 'mvc/history/history-panel-annotated' ], function( panelMod ){
|
||||
|
||||
|
||||
@@ -177,7 +177,8 @@ a.btn {
|
||||
baseUrl : "${h.url_for( '/static/scripts' )}",
|
||||
paths : {
|
||||
'jquery' : 'libs/jquery/jquery'
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
})([
|
||||
'mvc/user/user-model',
|
||||
panelToUse.location,
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
baseUrl: "${h.url_for('/static/scripts')}",
|
||||
shim: {
|
||||
"libs/underscore": { exports: "_" }
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
|
||||
require(["mvc/tools"], function(tools_mod) {
|
||||
|
||||
@@ -58,7 +58,8 @@
|
||||
shim: {
|
||||
"libs/underscore": { exports: "_" },
|
||||
"libs/backbone/backbone": { exports: "Backbone" },
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
require( ["viz/trackster"], function(trackster) {
|
||||
|
||||
|
||||
@@ -147,7 +147,8 @@
|
||||
shim: {
|
||||
"libs/underscore": { exports: "_" },
|
||||
"libs/d3": { exports: "d3" }
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
|
||||
require(["viz/phyloviz"], function(phyloviz_mod) {
|
||||
|
||||
@@ -116,7 +116,8 @@
|
||||
"libs/underscore": { exports: "_" },
|
||||
"libs/d3": { exports: "d3" },
|
||||
"libs/backbone/backbone": { exports: "Backbone" },
|
||||
}
|
||||
},
|
||||
urlArgs: 'v=${int(app.server_starttime)}'
|
||||
});
|
||||
|
||||
require(["libs/d3", "viz/sweepster"], function(d3, sweepster) {
|
||||
|
||||
Reference in New Issue
Block a user