You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead use LinksUpdate which runs updateStore() but additionally does an incremental update on pagelinks, imagelinks, externallinks, and templatelinks tables.
$linksUpdate = new \LinksUpdate( $this->getTitle(), $parserOutput, false );
$linksUpdate->doUpdate();
This would increase update accuracy and would allow to resolve Bug 20352 (currently Special:WhatLinksHere isn't updated which shows outdated links to pages no longer reside in a query or for deleted subjects).
Store update
Currently
UpdateJob
callsupdateStore
explicitly.Instead use
LinksUpdate
which runs updateStore() but additionally does an incremental update onpagelinks
,imagelinks
,externallinks
, andtemplatelinks
tables.This would increase update accuracy and would allow to resolve Bug 20352 (currently Special:WhatLinksHere isn't updated which shows outdated links to pages no longer reside in a query or for deleted subjects).
When the
LinksUpdate
call is invoked theLinksUpdateConstructed
hook is executed.Duplicates
It needs to be tested if setting
$this->removeDuplicates = true
reduces possible duplicates for the same Title object.Reference
https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/integration/MwLinksUpdateWithSQLStoreDBIntegrationTest.php
The text was updated successfully, but these errors were encountered: