diff options
| author | ruki <[email protected]> | 2022-05-21 13:05:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-21 13:05:21 +0800 |
| commit | 75b7205643d9846f6233250e1189c41251821674 (patch) | |
| tree | c8a36ba24370cc10699516db699eaa1320e4b664 /xmake/modules/private/cache/build_cache.lua | |
| parent | 4a858cc597b62dddd4e21d55460bf888e03f3cef (diff) | |
clean remote cache
Diffstat (limited to 'xmake/modules/private/cache/build_cache.lua')
| -rw-r--r-- | xmake/modules/private/cache/build_cache.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua index 17020497d..96d777c1b 100644 --- a/xmake/modules/private/cache/build_cache.lua +++ b/xmake/modules/private/cache/build_cache.lua @@ -22,6 +22,7 @@ import("core.base.bytes") import("core.base.hashset") import("core.project.config") +import("private.service.client_config") import("private.service.remote_cache.client", {alias = "remote_cache_client"}) -- is enabled? @@ -75,6 +76,10 @@ end -- clean cached files function clean() os.rm(rootdir()) + if remote_cache_client.is_connected() then + client_config.load() + remote_cache_client.singleton():clean() + end end -- get hit rate |
