On Tue, 13 Jul 2004 23:08:08 +0200 Emmanuel Engelhart
<emmanuel(a)engelhart.org> wrote:
On wikipedia the MAX_INCLUDE_REPEAT limit
(=5) in Parser.php is
problematic. I propose to change the sens of this constraint from
"max template inclusions" to "max different template inclusions".
To solve the memory usage problem, we could
use a tempory table
containing the previously loaded templates in the article ? So, each
template replicated x time in an article would generate only one SQL
request.
On Wed, 14 Jul 2004 23:46:35 +0200, Jens Frank <jeluf(a)gmx.de> wrote:
If article [[X]] includes [[Template:A]] which
includes [[Template:B]],
which again includes [[Template:A]], this would result in a memory
bomb using only two different templates.
I think Emmanuel's suggestion is more akin to PHP's include_once() and
thus wouldn't be vulnerable to the type of problem you're describing.
Emmanuel and I have tested it: It is vulnerable to this approach.
Regards,
JeLuF