Page MenuHomePhabricator

Increment expensive function counter while retrieving data
Open, Needs TriagePublicFeature

Description

Since functions that retrieve external data are generally expensive, the expensive function counter should be incremented, so that $wgExpensiveParserFunctionLimit works; in some cases, even more than by one.

This can be regulated by the per-datasource setting cost: by default 1, for some data sources, zero, or two, or more.

This will make a wiki setup with External Data enabled more resistant to vandalism or carelessness.