Skip to content

Commit

Permalink
fixup cache
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleSanderson authored Nov 24, 2024
1 parent ad12327 commit 1546361
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,17 +476,18 @@ func handleClean(w http.ResponseWriter, r *http.Request) {
}

fmt.Printf("Parent: %q\n", parentName)
parentrls := *CacheTitle(parentName)

parentrls := *CacheTitle(parentName)
for _, child := range v {
if rls.Compare(*CacheTitle(child.Name), parentrls) == 0 {
childrls := *CacheTitle(child.Name)
if rls.Compare(childrls, parentrls) == 0 {
continue
}

bContinue := false
childHashes := make([]string, 0, len(v))
for _, subChild := range v {
if rls.Compare(*CacheTitle(subChild.Name), *CacheTitle(child.Name)) != 0 {
if rls.Compare(*CacheTitle(subChild.Name), childrls) != 0 {
continue
}

Expand Down

0 comments on commit 1546361

Please sign in to comment.