sillygod / cdp-cache

a caddy 2 proxy cache plugin
MIT License
120 stars 18 forks source link

keyCacheMaxMemorySize is not accounted for #48

Closed nikooo777 closed 2 years ago

nikooo777 commented 2 years ago

The switch case here does not account for the cache_max_memory_size parameter. This makes it so that when one is specified, this happens:

run: adapting config using caddyfile: parsing caddyfile tokens for 'http_cache': /etc/caddy/Caddyfile:21 - Error during parsing: Unknown cache parameter: cache_max_memory_size

Which is probably the reason why eventually the server blows up in ram and crashes.