configure cache only if enabled from config