Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 1b64943

Browse files
committed
Enable lfs polling by regularly triggering a cache invalidation
1 parent b3d5752 commit 1b64943

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ public void Refresh(CacheType cacheType)
188188
{
189189
var cache = cacheContainer.GetCache(cacheType);
190190
cache.InvalidateData();
191+
192+
// take the opportunity to possibly refresh the locks cache, if it has timed out
193+
if (cacheType != CacheType.GitLocks)
194+
{
195+
cacheContainer.GetCache(CacheType.GitLocks).ValidateData();
196+
}
191197
}
192198

193199
private void CacheHasBeenInvalidated(CacheType cacheType)

0 commit comments

Comments
 (0)