summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index b7f2fd222..c929c9ba5 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -31,8 +31,14 @@ function js_out(){
global $lang;
global $config_cascade;
+ if (isset($_GET['cacheKey'])) {
+ $cacheKey = strval($_GET['cacheKey']);
+ } else {
+ $cacheKey = '';
+ }
+
// The generated script depends on some dynamic options
- $cache = new cache('scripts'.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'],
+ $cache = new cache('scripts'.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'].$cacheKey,
'.js');
// load minified version for some files