Backport of PR #4378: Don't use xcache in case admin auth is enabled.