summaryrefslogtreecommitdiff
path: root/xmake/modules/private/cache/build_cache.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-21 11:30:35 +0800
committerruki <[email protected]>2022-05-21 11:30:35 +0800
commit8779be504606c88f33580fdf550fe0be04440093 (patch)
tree4489690e3e9697f3fee727b6c86c0f144d90e4e4 /xmake/modules/private/cache/build_cache.lua
parent4989757b65f676663a58bcceb75c8643fbbabccb (diff)
add todo
Diffstat (limited to 'xmake/modules/private/cache/build_cache.lua')
-rw-r--r--xmake/modules/private/cache/build_cache.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua
index 4f4b2c206..17020497d 100644
--- a/xmake/modules/private/cache/build_cache.lua
+++ b/xmake/modules/private/cache/build_cache.lua
@@ -130,6 +130,7 @@ function put(cachekey, objectfile)
os.cp(objectfile, objectfile_cached)
_g.newfiles_count = (_g.newfiles_count or 0) + 1
if remote_cache_client.is_connected() then
+ -- TODO we need optimize it, decrease query count
local cacheinfo = remote_cache_client.singleton():cacheinfo(cachekey)
if not cacheinfo or not cacheinfo.exists then
_g.remote_newfiles_count = (_g.remote_newfiles_count or 0) + 1