Commit graph

12 commits

Author SHA1 Message Date
Tim Starling
4b66381cbf * Mostly reverted r41081 and related. Although the motivation (to save a query) is noble, it's a complex special case relying on subtle inter-module effects, making the code quite unclear and the performance advantage hard to reproduce in new code.
* r41081 was causing the job queue to be flooded with tiny htmlCacheUpdate jobs which were less than the batch size and so, according to the original logic, should have been done immediately. This was causing template updates to be delayed even when the template has few backlinks. This is fixed.
* Introduced a shared cache called BacklinkCache with the main purpose of sharing data from these backlink queries, thus recovering the performance of r41081.
* Refactored backlink partitioning code, which in r40741 was copied from HTMLCacheUpdate to LinksUpdate with a bug intact. The bug caused every htmlCacheUpdate or refreshLinks2 job to be split into at least two pieces even when number of rows is less than the batch size.
* Fixed a bug from r40741 causing refreshLinks2 jobs with end=false to be ignored.
* Made SquidUpdate::newFromTitles() accept a TitleArray
2009-02-16 14:26:34 +00:00
Andrew Garrett
5b29264951 Add 'include pages linked to from these pages' to Special:Export and the corresponding transwiki interface. 2009-02-06 22:44:28 +00:00
Chad Horohoe
ff3d15d134 (bug 15283) Interwiki imports should fetch included templates 2009-02-06 00:02:44 +00:00
Brion Vibber
3b571e768c Attempting to import a title that came out as an interwiki would sort of half-work somewhere then explode when trying to save the null revision with the import info:
Fatal error:  Call to a member function insertOn() on a non-object in /Library/WebServer/Documents/trunk/includes/specials/SpecialImport.php on line 305

Now such titles are skipped. You can probably force import of the page by forcing the target namespace...

Better long-term solution might include title renormalization, adapation of remote namespace names (eg Wikipedia -> Project), etc.
2008-12-10 22:41:13 +00:00
Ariel Glenn
6584a7bb0d handle xmlns for imports (bug #4520) 2008-12-05 02:16:11 +00:00
Brion Vibber
2d5024f4d7 * Add guard exception in OutputPage::parse() for failure case where $wgTitle is null; that causes a fatal error which doesn't show a backtrace if we don't catch it here.
* Temporarily set $wgTitle while doing article creation/edit updates during XML import. A null $wgTitle as in importDump.php caused a fatal error when special pages were transcluded if they did any parsing via OutputPage::parse()
2008-11-24 01:58:15 +00:00
Aaron Schulz
ee07baa6c3 Don't use vague boolean 2008-10-13 06:02:32 +00:00
Aaron Schulz
27980cd92b * Avoid doing templatelinks query (which can get huge) twice by adding cachupdate jobs using the same query as refreshlinks jobs do
* Don't trigger recursive jobs for nulls edits
* Some whitespace tweaks
2008-09-20 22:48:55 +00:00
Aaron Schulz
48147c381f improve log dupe check 2008-09-18 21:12:29 +00:00
Aaron Schulz
6e1c270ac8 Comment out log_user_text stuff for now 2008-09-18 20:56:49 +00:00
Aaron Schulz
46ff00f486 * Add support for log importing
* Improve accuracy of revision duplicate check
* Some minor cleanup and re-organizing
2008-09-18 20:52:34 +00:00
Aaron Schulz
5b2f7a71f6 * Move Import stuff to it's own file like Export
* Force logging index
* Some code style tweaks
* Set visibility in some places
2008-09-18 16:41:43 +00:00