changed queries
The WantedQueryPages (WantedPages, WantedTemplates, WantedCategories and WantedImages) are showing often ghost entries. Purging the entries is possible (bug 16112) but not down regularly on all wikis.
I have modify the queries of that 4 special page to count only existing pages. Than this ghost entries are gone from the special page output.
To reach this, the query has to join a second time to the page table to check the *_from fields of existing in the page table.
All special pages are expensive. I hope, the change makes the special pages not too expensive and they can stay on wmf wikis.
Feel free to modify the patch.
Thanks.
Version: 1.20.x
Severity: normal
Attached: