From 533e8602c0be3aed7becc74002c58a7d1cf400c3 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 09 Jun 2009 04:08:00 -0400 Subject: [PATCH] Add cache-buster to scripts and linked files in skin templates --- program/include/main.inc | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/program/include/main.inc b/program/include/main.inc index f9783ba..dbed2ba 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -1023,17 +1023,16 @@ * @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 @@ $label = 'Timer '.$print_count; console(sprintf("%s: %0.4f sec", $label, $diff)); - } +} /** -- Gitblit v1.9.1