Disable cache based on manage_redis

The configuration is not altered by `manage_redis` option so there is no way to turn off cache, this should fix that.