Manual talk:RefreshLinks.php

refreshlinks
Hi, can you give an example of article? I'm trying this php maintenance/refreshLinks.php [starting_article] but it doesn't work :( --Mark 07:57, 11 December 2009 (UTC)
 * php maintenance/refreshLinks.php 8000
 * will make it start with page id 8000. Added that. --88.130.74.229 19:06, 20 June 2014 (UTC)

What about langlinks?
Does it refresh this table?

Troubleshooting
I've added a troubleshooting section as the known memory issues have not been dealt with here. See also Help:Download @de-Wiki. --DuyTrinh 08:45, 2 November 2011 (UTC)
 * Cool, good point. I added instructions to avoid this in the first place. Cheers --&#91;&#91;kgh&#93;&#93; 22:26, 2 November 2011 (UTC)

Script stops processing data
This script gets to

Refreshing links table. Starting from page_id 1 of 3651. 100 200

and then just sits there. According to TOP php and mysqld both drop to 0%CPU so I cant imagine that its still processing anything. I know it says it can take a long time, but after an hour it was still in the same place.

Is there a known problem?

I need to run this because i imported a large chunk of data into the DB (exported a chunk of data made a Find/Replace change, and import) and I need to run this to get it updated.

Chunking refreshLinks.php
Where and how to run this script?

Copy the code to your console and hit enter to start
You simply need to copy the code, to your command line, and make sure that you adjust the Example After Pasting the code, hit enter.

Multihreaded run
Since this script takes an extremely long time to finish on a large wiki, I would like to run it in multiple processes, maybe like so:


 * Process 1:
 * Process 2:
 * Process 3:
 * Process 4:

...and so on. Does anybody know if this script can run fine in parallel, or would there be some concerns with this? Buoysel (talk) 23:44, 9 November 2023 (UTC)