MZMcBride wrote:
Doesn't it make much more sense to fix the underlying problem instead? Users shouldn't have to be concerned with the number of #ifexists on a page.
MZMcBride
Well, if someone wants to change #ifexist, they should change the parser (braceSubstitution) so that they can be done in parallel. So that if you have for instance: {{#ifexist: File:Flag of {{{1}}}.svg|<td>[[File:Flag of {{{1}}}.svg]]</td>}} {{#ifexist: File:Shield of {{{1}}}.svg|<td>[[File:Shield of {{{1}}}.svg]]</td>}}
They are performed in parallel, using one LinkBatch, instead of being two separated queries. Nested #ifexist and other cases would still need being checked separatedly, but it would substantially reduce the "#ifexist load". I think that most of them are even on the same "child level".