mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-12-03 03:29:51 +00:00
currency: honor CODEBURN_CACHE_DIR for the exchange-rate cache (#766)
The one cache module still hardcoding ~/.cache/codeburn; every other cache (session, daily, codex, pricing) honors the relocation override, so a user moving the cache dir kept getting this single file in the default location. Found by the pre-release functional sweep.
This commit is contained in:
parent
dbd93fee51
commit
d8158afb1b
1 changed files with 4 additions and 1 deletions
|
|
@ -73,7 +73,10 @@ export function roundForActiveCurrency(value: number): number {
|
|||
}
|
||||
|
||||
function getCacheDir(): string {
|
||||
return join(homedir(), '.cache', 'codeburn')
|
||||
// Honor the same relocation override every other cache module uses
|
||||
// (session-cache, daily-cache, codex-cache, models); this was the one
|
||||
// straggler still hardcoding the default path.
|
||||
return process.env['CODEBURN_CACHE_DIR'] ?? join(homedir(), '.cache', 'codeburn')
|
||||
}
|
||||
|
||||
function getRateCachePath(): string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue