Skip to content
Snippets Groups Projects
Commit c51f90d7 authored by Dominik Eckelmann's avatar Dominik Eckelmann
Browse files

let js.php use multiple caches

parent 59f3611b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment