Closed Rush closed 6 years ago
Technically speaking, this plugin is very similar to the caching in Drone 0.4. The plugin caches folder on a mounted host directory, meaning it works well for single machine situations.
The plugin has a separate cache for Matrix jobs, but not for branches. This has been requested in #12. I like the idea of making Pull Request access read only. I will add it to the list.
https://github.com/Drillster/drone-volume-cache/pull/16 - not sure if this is what you planned but I don't mind pull requests having write access to cache.
One thing to keep in mind though is that some sort of cache cleanup needs to happen periodically. Maybe this cleanup should be added to the plugin itself. For example limiting cache size and cleaning oldest caches when a threshold is reached.
My branch can be tested with rushpl/drone-volume-cache
, same config, should work automatically
The cache cleanup function is actually already present. You can set a cache TTL like so: https://github.com/Drillster/drone-volume-cache/blob/master/DOCS.md#using-cache-lifetime
Hello, I read an article on how caching worked for Drone 0.4 http://readme.drone.io/0.4/usage/caching/
Does this plugin work the same? I am particularly interested in the below: