From: Michael M Slusarz Date: Thu, 30 Jul 2009 04:20:03 +0000 (-0600) Subject: Remove version string from md5 hash X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6875666f69f347998c691071c7518c8a64671913;p=horde.git Remove version string from md5 hash Thinking about this a bit more - any version upgrade should cause a new mtime for a file that has been altered. So there is no need to tack on version information. This allows different applications that have the same include files (will only ever happen with javascript) to share a single cached file. --- diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index ba1cb72b8..148028b0b 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -314,7 +314,7 @@ HTML; sort($s_list); - $sig = hash('md5', serialize($s_list) . max($mtime) . $GLOBALS['registry']->getVersion()); + $sig = hash('md5', serialize($s_list) . max($mtime)); switch ($cache_type) { case 'filesystem': @@ -1636,7 +1636,7 @@ HTML; $mtime[] = filemtime($file['f']); } - $sig = hash('md5', serialize($css) . max($mtime) . $GLOBALS['registry']->getVersion()); + $sig = hash('md5', serialize($css) . max($mtime)); switch ($cache_type) { case 'filesystem':