Page MenuHomePhabricator

Parsoid: use rendering from ParserCache for selser if the render ID matches.
Closed, ResolvedPublic

Description

For wikitext-to-html conversion, we want to have the original html rendering as context. If client may send a render ID (wrapped in an etag) to reference a stashed rendering. If that rendering is not found in the stash (because it has expired or has been evicted), we should check the rendering we have in the parser cache, and use if it the render ID matches.

On wikis with low edit frequency, chances are good that this will work.

Event Timeline

Change 831917 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] WIP: HtmlInputHelper: Load HTML from cache if possible

https://gerrit.wikimedia.org/r/831917

Change 831917 merged by jenkins-bot:

[mediawiki/core@master] HtmlInputTransformHelper: Fall back to ParserCache

https://gerrit.wikimedia.org/r/831917