jira-importer opened a new issue, #321:
URL: https://github.com/apache/maven-build-cache-extension/issues/321

   **[Réda Housni 
Alaoui](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ralaoui)** 
opened 
**[MBUILDCACHE-108](https://issues.apache.org/jira/browse/MBUILDCACHE-108?redirect=false)**
 and commented
   
   As of today, the only mecanism of local cache cleaning is based on the 
maximum local cache entries to keep. e.g. If configured to 10, when reaching 
the threshold during a build, this extension will remove as many cache entries 
as needed to pass the number of entries under the treshold.
   
   On a dev machine, this is good enough. But on a CI machine, where many 
builds of the same artifact gav could be running concurrently, this is risky. 
You could have an ongoing build removing the cache of another ongoing build.
   
   I propose to add a new cleanup strategy based on the last cache entry usage 
datetime. e.g. If configured to 7 days, the cleanup process would remove any 
cache entry that hasn't been used for more than 7 days.
   
   
   ---
   No further details from 
[MBUILDCACHE-108](https://issues.apache.org/jira/browse/MBUILDCACHE-108?redirect=false)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to