Skip to content
Snippets Groups Projects
Commit cd997f93 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

include updateVersion in CSS/JS tseed to force reload on update

parent b25974c4
No related branches found
No related tags found
No related merge requests found
...@@ -291,12 +291,10 @@ function tpl_metaheaders($alt = true) { ...@@ -291,12 +291,10 @@ function tpl_metaheaders($alt = true) {
$head = array(); $head = array();
// prepare seed for js and css // prepare seed for js and css
$tseed = 0; $tseed = $updateVersion;
$depends = getConfigFiles('main'); $depends = getConfigFiles('main');
foreach($depends as $f) { foreach($depends as $f) $tseed .= @filemtime($f);
$time = @filemtime($f); $tseed = md5($tseed);
if($time > $tseed) $tseed = $time;
}
// the usual stuff // the usual stuff
$head['meta'][] = array('name'=> 'generator', 'content'=> 'DokuWiki'); $head['meta'][] = array('name'=> 'generator', 'content'=> 'DokuWiki');
......
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