mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-30 22:34:18 -05:00
allowing cache size of 0
This commit is contained in:
parent
dbf505d137
commit
f6e6a2cc86
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ func main() {
|
|||
CacheSizeMax: *cacheSize * 1024 * 1024,
|
||||
})
|
||||
c = diskcache.NewWithDiskv(d)
|
||||
} else {
|
||||
} else if *cacheSize != 0 {
|
||||
c = httpcache.NewMemoryCache()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue