diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-06-09 08:08:00 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-06-09 08:08:00 +0000 |
| commit | 58a6eeadeedca7b7970ed15fd0b7c6193527130e (patch) | |
| tree | 53e34e1ea31da7b8128a83f4ea0b09da220a5f29 /roundcubemail/program/include/main.inc | |
| parent | e77712ac0e1fdf7c15b998f26ae9eb1485d569b0 (diff) | |
Add cache-buster to scripts and linked files in skin templates
git-svn-id: https://svn.roundcube.net/trunk@2626 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/main.inc')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index f9783ba3f..dbed2ba09 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -1023,17 +1023,16 @@ function write_log($name, $line) * @access private */ function rcube_timer() - { - list($usec, $sec) = explode(" ", microtime()); - return ((float)$usec + (float)$sec); - } +{ + return microtime(true); +} /** * @access private */ function rcube_print_time($timer, $label='Timer') - { +{ static $print_count = 0; $print_count++; @@ -1044,7 +1043,7 @@ function rcube_print_time($timer, $label='Timer') $label = 'Timer '.$print_count; console(sprintf("%s: %0.4f sec", $label, $diff)); - } +} /** |
