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 includes a couple of commits from my other pull request.