]> source.dussan.org Git - archiva.git/commitdiff
reverted preivous change : cacheFailure is shared between connectors and has side...
authorNicolas De Loof <nicolas@apache.org>
Fri, 11 Jan 2008 09:10:06 +0000 (09:10 +0000)
committerNicolas De Loof <nicolas@apache.org>
Fri, 11 Jan 2008 09:10:06 +0000 (09:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@611116 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java

index be4ad11126da7861c52b3a2475dc3bcdabfd5163..5b3d1a515611b048811e4a7c748dc74a6f7b40ef 100644 (file)
@@ -524,11 +524,6 @@ public class DefaultRepositoryProxyConnectors
             getLogger().info( emsg );
             return null;
         }
-       
-               if ( urlFailureCache.hasFailedBefore( url ) )
-               {
-                       throw new NotFoundException( "Url has failed before and cache-failure is enabled on this connector" );
-               }
                        
         Wagon wagon = null;
         try
@@ -552,10 +547,7 @@ public class DefaultRepositoryProxyConnectors
         }
         catch ( NotFoundException e )
         {
-                       // public repositories may be slow to access, and many request will fail when 
-                       // muliple repositories are "merged" by archiva via proxies.
-                       // so caching "not found" is usefull here to enhance archiva response-time
-            urlFailureCache.cacheFailure( url );                       
+            // Do not cache url here.
             throw e;
         }
         catch ( NotModifiedException e )