jayvdb added a subscriber: jayvdb. jayvdb reopened this task as "Open". jayvdb added a comment.
It is using caching, but it is doing additional, unnecessary work. It is also determining the category redirect target, so it uses templatesWithParams. There is no speed advantage of doing that in isCategoryRedirect. It can be done in isCategoryRedirectTarget. Instead isCategoryRedirect can use Page.templates() , which will be cached and is used by templatesWithParams() anyway. TASK DETAIL https://phabricator.wikimedia.org/T61080 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: jayvdb, Ricordisamoa, Multichill, Ladsgroup, pywikipedia-bugs _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
