git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1133165 13f79535-47bb-0310-9956-ffa450edef68tags/archiva-1.4-M1
@@ -24,7 +24,8 @@ | |||
xsi:schemaLocation="http://www.springframework.org/schema/beans | |||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |||
http://www.springframework.org/schema/context | |||
http://www.springframework.org/schema/context/spring-context-3.0.xsd"> | |||
http://www.springframework.org/schema/context/spring-context-3.0.xsd" | |||
default-lazy-init="true"> | |||
<context:annotation-config/> | |||
<context:component-scan base-package="org.apache.archiva.common.plexusbridge"/> |
@@ -23,7 +23,8 @@ | |||
xsi:schemaLocation="http://www.springframework.org/schema/beans | |||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |||
http://www.springframework.org/schema/context | |||
http://www.springframework.org/schema/context/spring-context-3.0.xsd"> | |||
http://www.springframework.org/schema/context/spring-context-3.0.xsd" | |||
default-lazy-init="true"> | |||
<context:property-placeholder system-properties-mode="FALLBACK"/> | |||
<context:annotation-config/> |
@@ -65,4 +65,20 @@ | |||
</bean> | |||
<bean id="url-failures-cache" class="org.codehaus.plexus.cache.ehcache.EhcacheCache" lazy-init="true" | |||
destroy-method="dispose"> | |||
<property name="diskExpiryThreadIntervalSeconds" value="600"/> | |||
<property name="diskPersistent" value="false"/> | |||
<property name="diskStorePath" value="${java.io.tmpdir}/archiva/urlcache"/> | |||
<property name="maxElementsInMemory" value="1000"/> | |||
<property name="memoryEvictionPolicy" value="LRU"/> | |||
<property name="name" value="url-failures-cache"/> | |||
<property name="overflowToDisk" value="false"/> | |||
<!-- 45 minutes = 2700 seconds --> | |||
<property name="timeToIdleSeconds" value="2700"/> | |||
<!-- 30 minutes = 1800 seconds --> | |||
<property name="timeToLiveSeconds" value="1800"/> | |||
</bean> | |||
</beans> |