* add timestramp to js css url to prevent browser cache for debug mode.

This commit is contained in:
Catouse
2018-05-25 17:05:11 +08:00
parent 66560e81e3
commit 5e787cddc6
+6 -5
View File
@@ -21,15 +21,16 @@ $onlybody = zget($_GET, 'onlybody', 'no');
echo '<script>config.onlybody = "' . $onlybody . '";</script>';
if($config->debug)
{
$timestamp = time();
js::import($jsRoot . 'jquery/lib.js');
js::import($jsRoot . 'zui/min.js');
js::import($jsRoot . 'my.full.js');
js::import($jsRoot . 'zui/min.js?t=' . $timestamp);
js::import($jsRoot . 'my.full.js?t=' . $timestamp);
css::import($themeRoot . 'zui/css/min.css');
css::import($defaultTheme . 'style.css');
css::import($themeRoot . 'zui/css/min.css?t=' . $timestamp);
css::import($defaultTheme . 'style.css?t=' . $timestamp);
css::import($langTheme);
if(strpos($clientTheme, 'default') === false) css::import($clientTheme . 'style.css');
if(strpos($clientTheme, 'default') === false) css::import($clientTheme . 'style.css?t=' . $timestamp);
}
else
{