Page MenuHomePhabricator

Create a Lua module to allow calling API internally
Closed, DeclinedPublic

Description

This may eliminate or deprioritize a bunch of other Lua requests.


Version: unspecified
Severity: enhancement

Details

Reference
bz49726

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 2:00 AM
bzimport added a project: Scribunto.
bzimport set Reference to bz49726.
bzimport added a subscriber: Unknown Object (MLST).

Note this has been discussed before. The biggest problem is that calling potentially slow and expensive API modules from the page parse is probably not a good idea.

(In reply to comment #1)

Note this has been discussed before. The biggest problem is that calling
potentially slow and expensive API modules from the page parse is probably
not
a good idea.

Won't it be counted in Lua execution limit?

Note, some api modules are not safe to call during parsing, since the invoke $wgParser. (Most notably action=parse and action=edit. however we probably wouldn't want to allow those two anyway, but there may be other modules that do this)

Anomie claimed this task.

If anything along these lines is going to happen, it would be more in the realm of T78171. So let's close this in favor of that.