From f6e6a2cc86305057e3643bf6b14d23d6f909ff69 Mon Sep 17 00:00:00 2001 From: Rune Madsen Date: Wed, 12 Aug 2015 11:44:24 -0400 Subject: [PATCH] allowing cache size of 0 --- cmd/imageproxy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/imageproxy/main.go b/cmd/imageproxy/main.go index 77ae035..9d3bcd9 100644 --- a/cmd/imageproxy/main.go +++ b/cmd/imageproxy/main.go @@ -62,7 +62,7 @@ func main() { CacheSizeMax: *cacheSize * 1024 * 1024, }) c = diskcache.NewWithDiskv(d) - } else { + } else if *cacheSize != 0 { c = httpcache.NewMemoryCache() }