mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-03 04:02:14 +00:00
Add ID based cache to determine if rows have actually changed
This commit is contained in:
parent
c79f5e7e7e
commit
c2d9a98bf9
3 changed files with 105 additions and 16 deletions
|
@ -31,6 +31,9 @@ func loadRepo(repository string) {
|
|||
}
|
||||
}
|
||||
|
||||
// Preload cache data of current rows
|
||||
loadRepoIntoCache(tmpDirectory + "/repo")
|
||||
|
||||
commitHash := getCommitHash()
|
||||
log.Printf("Last reported hash: %s", commitHash)
|
||||
gitRepo = r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue