0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-30 22:34:18 -05:00

remove long-deprecated cacheDir and cacheSize flags

This commit is contained in:
Will Norris 2017-09-09 08:33:06 +00:00
parent 5ee7e282cf
commit 5264eb6db0

View file

@ -41,8 +41,6 @@ var whitelist = flag.String("whitelist", "", "comma separated list of allowed re
var referrers = flag.String("referrers", "", "comma separated list of allowed referring hosts")
var baseURL = flag.String("baseURL", "", "default base URL for relative remote URLs")
var cache = flag.String("cache", "", "location to cache images (see https://github.com/willnorris/imageproxy#cache)")
var cacheDir = flag.String("cacheDir", "", "(Deprecated; use 'cache' instead) directory to use for file cache")
var cacheSize = flag.Uint64("cacheSize", 0, "Deprecated: this flag does nothing")
var signatureKey = flag.String("signatureKey", "", "HMAC key used in calculating request signatures")
var scaleUp = flag.Bool("scaleUp", false, "allow images to scale beyond their original dimensions")
var timeout = flag.Duration("timeout", 0, "time limit for requests served by this proxy")
@ -98,9 +96,6 @@ func main() {
// parseCache parses the cache-related flags and returns the specified Cache implementation.
func parseCache() (imageproxy.Cache, error) {
if *cache == "" {
if *cacheDir != "" {
return diskCache(*cacheDir), nil
}
return nil, nil
}