Other places check for the availability of `ding_session_cache` before calling related methods. Should this also be done here?