Remove version string from md5 hash
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 30 Jul 2009 04:20:03 +0000 (22:20 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 30 Jul 2009 17:42:49 +0000 (11:42 -0600)
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

index ba1cb72..148028b 100644 (file)
@@ -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':