[10:41:37] [1/3] I just found out that `filepath` is not an expensive parser function even though it can be used to replace `ifexist`, which is expensive, at least for files. Is there any reason why it is the case? Seems like an oversight on MediaWiki's part, though `ifexist` being expensive in the first place doesn't make sense to me since template transclusions are much more expensive comput [10:41:37] [2/3] ationally. [10:41:37] [3/3] https://cdn.discordapp.com/attachments/1006789349498699827/1304033008591835146/image.png?ex=672deae1&is=672c9961&hm=485cb75f777fb251501d0343fc7372493b89dee3b1485bab199688998f12da74& [11:25:31] @posix_memalign I wouldn't try and get sense out of the whats expensive or not [11:39:54] there's only one true answer [11:39:55] gold bars [11:43:45] I guess it's still good to know this workaround in case a page fails to parse due to making too many "expensive" parser function calls. Our wiki is nowhere near that limit yet, though (about 20/99). [11:44:12] You can raise the limit a bit in ManageWiki [11:44:19] It's probably restricted [11:44:21] But it's there [11:44:33] BlankEclair: heh [11:45:03] Id go with whether a unicorn is looking east as the starts align with some rock or something knowing MediaWiki BlankEclair [11:45:48] grep the source code for the functions that increment the expensive count lol [11:46:32] Ah. It's reassuring to know that the limit can go up to 500. I won' hesitate to write more `ifexist` then. [11:47:44] [1/3] QUESTION [11:47:45] [2/3] * I was wondering, if we could make a notice on Meta's File Upload, to direct users directly to [[mh:commons]] instead of uploading files to meta. [11:47:45] [3/3] * And/or if we could make it so that only stewards, admins and moderators can uploaded local files? [11:47:45] [11:58:49] We can do either [13:03:30] For the latter do you mean on meta [13:05:13] Yes!! [13:46:56] [1/2] Because checking for a page existence is significantly more expensive than a file. With a file, you only have to request the file from the RepoGroup. If you get a true return, the file exists, if not, it doesn't. There's only one place that a file could be and there's nowhere else we need to check. [13:46:57] [2/2] With ifexists, theres a lot more caveats. For example, we need to check the namespace, if its a special page etc. Cumulatively, they are expensive functions to run. [13:53:23] But also just a reminder if you use ifexist too many times nothing bad will happen, it will just only run up to the limit and the others won't run. [16:17:32] It would also be possible to configure metawiki such that the upload form uploads to commons rather then locally [22:12:47] not sure what other Matomo stats to output in Special:Analytics [22:12:52] think that's all I can do for now [22:15:41] the fact that campaigns seem to also work is awesome