Decline to cache preprocessor items larger than 1 Mb
authorOri Livneh <ori@wikimedia.org>
Thu, 3 Sep 2015 00:24:33 +0000 (17:24 -0700)
committerOri Livneh <ori@wikimedia.org>
Thu, 3 Sep 2015 00:27:28 +0000 (17:27 -0700)
commit4595e34ff111b36a3d7716cfb1935bed4f90d0af
tree589d40bfa5251050873b724b564d2b0d28c87345
parent89a167b500dc857f9def03bd83d951161d312d4d
Decline to cache preprocessor items larger than 1 Mb

This is a temporarily workaround for T111289. The data ought not be so large,
but it frequently is, and the problem is almost exclusive to this code path.
For now, just avoid attempting to cache the value if its size exceeds a million
bytes.

Bug: T111289
Change-Id: Idd1acd903193f0753cc5548bd32800705716dd9f
includes/parser/Preprocessor_Hash.php