mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-26 13:26:23 +02: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…
Add table
Add a link
Reference in a new issue