Emit warning when using null cache type