Backport PR
#2582: Fix displaying history when output cache is disabled....
Backport PR
#2582: Fix displaying history when output cache is disabled.
Previously, disabling the output cache disabled all history. These were separated, but the `%hist` magic was left with an unnecessary check, where if the output cache was disabled, it would refuse to work.
Closes gh-2581