Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 00da02c

Browse files
Caching ReadViewer for 10 minutes
1 parent 63c829c commit 00da02c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.InlineReviews/Services/PullRequestSessionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public virtual async Task<ActorModel> ReadViewer(HostAddress address)
455455
}
456456

457457
var connection = await graphqlFactory.CreateConnection(address);
458-
return await connection.Run(readViewer);
458+
return await connection.Run(readViewer, cacheDuration: TimeSpan.FromMinutes(10));
459459
}
460460

461461
public async Task<string> GetGraphQLPullRequestId(

0 commit comments

Comments
 (0)