Apply the same logic for caching ParserOutput for old revisions as ParserOutputAccess does.
Note that eventually, we won't need a special case for ParserOutput generated with Parsoid, everything will go through ParserOutputAccess. This is however blocked on further integrating Parsoid with core, specifically with WikitextContentHandler.