[ 
https://jira.codehaus.org/browse/MRM-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=295240#comment-295240
 ] 

Olivier Lamy commented on MRM-526:
----------------------------------

should work with adding an entry in 
WEB-INF/classes/META-INF/plexus/application.xml
see time-to* values.
{code}
    <component>
      <role>org.codehaus.plexus.cache.Cache</role>
      <role-hint>url-failures-cache</role-hint>
      
<implementation>org.codehaus.plexus.cache.ehcache.EhcacheCache</implementation>
      <description>URL Failure Cache</description>
      <configuration>
        
<disk-expiry-thread-interval-seconds>600</disk-expiry-thread-interval-seconds>
        <disk-persistent>true</disk-persistent>
        <disk-store-path>${java.io.tmpdir}/archiva/urlcache</disk-store-path>
        <eternal>false</eternal>
        <max-elements-in-memory>1000</max-elements-in-memory>
        <memory-eviction-policy>LRU</memory-eviction-policy>
        <name>url-failures-cache</name>
        <overflow-to-disk>false</overflow-to-disk>
        <!-- 45 minutes = 2700 seconds -->
        <time-to-idle-seconds>2700</time-to-idle-seconds>
        <!-- 30 minutes = 1800 seconds  -->
        <time-to-live-seconds>1800</time-to-live-seconds>
      </configuration>
    </component>
{code}

I agree on having something more easily configurable (per repo)

                
> cache-failure policy timeout should be easily configurable
> ----------------------------------------------------------
>
>                 Key: MRM-526
>                 URL: https://jira.codehaus.org/browse/MRM-526
>             Project: Archiva
>          Issue Type: Improvement
>          Components: remote proxy
>    Affects Versions: 1.0-beta-2
>            Reporter: JR Boyens
>            Assignee: Olivier Lamy
>             Fix For: 1.4-M3
>
>
> set in a plexus.xml deep in archiva-policy.jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to