Make dalli config conditional on the setting