diff options
author | Dominik Eckelmann <eckelmann@cosmocode.de> | 2012-01-24 11:12:44 +0100 |
---|---|---|
committer | Dominik Eckelmann <eckelmann@cosmocode.de> | 2012-01-24 11:12:44 +0100 |
commit | c51f90d7a072929e2b636e986b8ea2121bc5a630 (patch) | |
tree | a67368c20626bad5f1597e0f89523fbb0607d629 /lib/exe/js.php | |
parent | 59f3611b2f11fe1652befff8189787a1181a2f66 (diff) | |
download | rpg-c51f90d7a072929e2b636e986b8ea2121bc5a630.tar.gz rpg-c51f90d7a072929e2b636e986b8ea2121bc5a630.tar.bz2 |
let js.php use multiple caches
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r-- | lib/exe/js.php | 8 |
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 |