Apply changes made live on Wikimedia cluster related to preprocessor caching to subversion. Patch worked on by Tim Starling and myself.
Changes from the original patch (r46936):
- Add versioning to the cache, so the cache can be purged.
- Only cache preprocessor output for input of over a certain amount (default of 1000 bytes).