IDEA-297797 add option to delete old caches asynchronously during build

By default, the IDE deletes old caches synchronously that makes the build process twice longer (8 vs 4 minutes). The downside is that the deletion might not be completed if the build process is fast enough. In this case, garbage will pile up under 'system/plugins'. That's why this option is disabled by default.

Additionally, we try to use rsync on *nix systems that works faster than Java NIO or even rm. When the build process finishes, rsync continues working as its process is inherited by the root process. This might not be expected by allows to make things done.

GitOrigin-RevId: f864b0b703a898bec2267e2d19cb5536483c89c0
This commit is contained in:
Artem Khvastunov
2022-10-21 10:58:52 +02:00
committed by intellij-monorepo-bot
parent c1dc30db5d
commit 944ca4e316
11 changed files with 232 additions and 13 deletions

View File

@@ -334,6 +334,7 @@ notification.group.compiler=Build finished
compiler.cache.description=Compiler Cache
compiler.cache.option.force.update=Force update caches
compiler.cache.option.disable.update=Disable cache download
compiler.cache.option.cleanup.asynchronously=Cleanup aynchronously
compiler.cache.option.max.download.time=Maximum duration of caches download:
compiler.cache.option.max.download.time.units= mins
notification.title.jps.caches.downloader=Jps caches downloader