You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu
Question
Assuming I have a folder /var/cache which already has some content. And now the cache task should restore the cached files into that folder. What happens if files from the cache are already existing (same size, hash, ..) in the folder?
Are the files still downloaded from the cache and then the local files overwritten or is there some incremental behaviour in the cache task to only download what is not yet there in the target path?
The text was updated successfully, but these errors were encountered:
MTomBosch
changed the title
[Question]: Cache@2
[Question]: Cache@2 only downloads files not available in target path?
Nov 10, 2023
Looking at the code of the task, the agent plugin, and Azure DevOps backend, the cache task always downloads and restores all cached files. This makes sense (imho), since checking each file individually might take even longer than just wiping out the target and restoring the cached files.
Task name
Cache
Task version
2
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu
Question
The text was updated successfully, but these errors were encountered: