Skip to content

Commit

Permalink
Merge branch 'development' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
maradotwebp committed Jun 13, 2022
2 parents 987c88e + 6039bb4 commit 61e27ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/cfcache.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ const

proc getAddonFilename*(projectId: int): string {.inline.} =
## get the filename of an addon in the cache.
return getCacheDir("pax") / ("addon:" & $projectId)
return getCacheDir("pax") / ("addon-" & $projectId)

proc getAddonFileFilename*(fileId: int): string {.inline.} =
## get the filename of an addon file in the cache.
return getCacheDir("pax") / ("file:" & $fileId)
return getCacheDir("pax") / ("file-" & $fileId)

proc putAddon*(addon: CfAddon): void =
## put an addon in the cache.
Expand Down Expand Up @@ -115,4 +115,4 @@ template withCachedAddonFile*(c: untyped, fileId: int, body: untyped) =
let addonFile = getAddonFile(fileId)
if addonFile.isSome:
let c: JsonNode = addonFile.get()
body
body

0 comments on commit 61e27ef

Please sign in to comment.