On Wed, Jul 14, 2004 at 10:58:20PM +0200, Emmanuel Engelhart wrote:
On Tue, 13 Jul 2004 23:08:08 +0200 Emmanuel Engelhart emmanuel@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.
An opinion ?
As Attachment, a very simple patch which implements this idea.
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.
Caching templates is a good idea when keeping track of the used memory. Before we do so, the number of templates used must currently be restricted to avoid endless loops.
Regards,
JeLuF