summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorGina Haeussge <osd@foosel.net>2008-10-12 19:28:55 +0200
committerGina Haeussge <osd@foosel.net>2008-10-12 19:28:55 +0200
commite3e6ab3c9a02ebb58211cd1b0ebc26437d0c1827 (patch)
tree36d3e76abbca5b4f704ddf347deb6b4440f14b35 /lib/exe
parentaa90724a41887c942234e76084e5d945eb10c0fb (diff)
downloadrpg-e3e6ab3c9a02ebb58211cd1b0ebc26437d0c1827.tar.gz
rpg-e3e6ab3c9a02ebb58211cd1b0ebc26437d0c1827.tar.bz2
Include host in the seed for the JS and the CSS cachenames (FS#1487)
darcs-hash:20081012172855-2b4f5-85b89a7968681932d30f75072df347ba6a53b24c.gz
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/css.php2
-rw-r--r--lib/exe/js.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php
index 918897ed1..5d8f7058a 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -51,7 +51,7 @@ function css_out(){
}
// The generated script depends on some dynamic options
- $cache = getCacheName('styles'.DOKU_BASE.$tplinc.$style,'.css');
+ $cache = getCacheName('styles'.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'].DOKU_BASE.$tplinc.$style,'.css');
// load template styles
$tplstyles = array();
diff --git a/lib/exe/js.php b/lib/exe/js.php
index ad166da8d..af455641c 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -35,7 +35,7 @@ function js_out(){
$write = (bool) $_REQUEST['write']; // writable?
// The generated script depends on some dynamic options
- $cache = getCacheName('scripts'.$edit.'x'.$write,'.js');
+ $cache = getCacheName('scripts'.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'].$edit.'x'.$write,'.js');
// Array of needed files
$files = array(