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

Commit 5d15cb8

Browse files
Calling CacheHasBeenInvalidated instead of RefreshCache
At this point we know these values have already been marked as invalid. There is no reason to call RefreshCache on them and go through that pipeline again. Furthermore that pipeline is currently waiting for valid data, so it will not fire off the invalidation events a second time.
1 parent 9250765 commit 5d15cb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void Start()
9292
{
9393
foreach (var cacheType in cacheInvalidationRequests)
9494
{
95-
RefreshCache(cacheType);
95+
CacheHasBeenInvalidated(cacheType);
9696
}
9797
}
9898

0 commit comments

Comments
 (0)