Skip to content

Commit

Permalink
add cache to github:user data api
Browse files Browse the repository at this point in the history
  • Loading branch information
jwunderl committed Sep 3, 2024
1 parent 161fd13 commit f036166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/cloudsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function pingApiHandlerAsync(p: string): Promise<any> {
}

data.mountVirtualApi("sync", { getSync: syncApiHandler })
data.mountVirtualApi("github", { getSync: githubApiHandler })
data.mountVirtualApi("github", { getSync: githubApiHandler, expirationTime: p => 24 * 3600 * 1000 })
data.mountVirtualApi("ping", {
getAsync: pingApiHandlerAsync,
expirationTime: p => 24 * 3600 * 1000,
Expand Down

0 comments on commit f036166

Please sign in to comment.