From 6875666f69f347998c691071c7518c8a64671913 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 29 Jul 2009 22:20:03 -0600 Subject: [PATCH] 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. --- framework/Core/lib/Horde.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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': -- 2.11.0