Add ID based cache to determine if rows have actually changed

This commit is contained in:
Daniel Mason 2021-09-02 12:52:10 +12:00
parent c79f5e7e7e
commit c2d9a98bf9
Signed by: idanoo
GPG key ID: 387387CDBC02F132
3 changed files with 105 additions and 16 deletions

View file

@ -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