0
Fork 0
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:
Rune Madsen 2015-08-12 11:44:24 -04:00
parent dbf505d137
commit f6e6a2cc86

View file

@ -62,7 +62,7 @@ func main() {
CacheSizeMax: *cacheSize * 1024 * 1024,
})
c = diskcache.NewWithDiskv(d)
} else {
} else if *cacheSize != 0 {
c = httpcache.NewMemoryCache()
}