diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2020-04-07 16:52:41 -0700 |
---|---|---|
committer | Aaron Schulz <aschulz@wikimedia.org> | 2021-01-11 20:21:10 -0800 |
commit | de6eeead21f9cdb1bffa3f1b5877f71d03529722 (patch) | |
tree | 1859a76f92f23297836ce23ed44739fd4f99acd2 /includes/parser/PPNode_Hash_Tree.php | |
parent | 3ef5ebd504eaac03813eff6defbaf3faf544329e (diff) | |
download | mediawikicore-de6eeead21f9cdb1bffa3f1b5877f71d03529722.tar.gz mediawikicore-de6eeead21f9cdb1bffa3f1b5877f71d03529722.zip |
parser: convert Preprocessor to WANCache and inject dependencies
Make the caching logic use getWithSetCallback() and simplify
the code given that there is only one Preprocessor subclass.
Also, keep the cached values JSON serializable but rely on
the serialization in BagOStuff instead for simplicity.
Add related class constants for injecting preprocessor flags.
Bug: T254608
Change-Id: I72f9f0c0bc352ed5120469090c71294ff0c24999
Diffstat (limited to 'includes/parser/PPNode_Hash_Tree.php')
-rw-r--r-- | includes/parser/PPNode_Hash_Tree.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/parser/PPNode_Hash_Tree.php b/includes/parser/PPNode_Hash_Tree.php index e32cc9a23951..55ea08f69edf 100644 --- a/includes/parser/PPNode_Hash_Tree.php +++ b/includes/parser/PPNode_Hash_Tree.php @@ -340,6 +340,7 @@ class PPNode_Hash_Tree implements PPNode { * Like splitTemplate() but for a raw child array. For internal use only. * @param array $children * @return array + * @suppress SecurityCheck-XSS */ public static function splitRawTemplate( array $children ) { $parts = []; |