mozilla/kitsune — pull request #1768 by mythmon (2013-12-16 22:01:38+00:00)
Title: [Bug 943525] Cascade document re-renders.

This was easier than I expected, yay!

When ever a revision is approved, instead of maybe re-rendering the entire kb (if that flag is set), this always re-render only the parts of the kb that need changing. "Needs changing" is defined as containg a template link or an include link to a document that has been re-rendered. This can cascade to as many levels as needed, if your include has a template that includes another document. This is resistant to loops and other weird patterns in the graph. These are all done in a celery task, because rendering a bunch wiki documents in a request/response cycle sounds like a bad thing.

In testing I had this as including links as things that would cause a re-render. This was a bad idea and increased the amount of work to be done by an order of magnitude or two. After I fixed that, this got a lot more pleasant.

r?