Fixed #17083 -- Allowed sessions to use non-default cache.