Manual:RefreshLinks.php/fr

Détails
Le fichier refreshLinks.php est un script de maintenance pour [ré]initialiser les tables, , et. You should run it if you found that categories are empty or don't show all relevant pages, if "What links here?" doesn't work well, or some other link-related trouble. Additionally this script purges links that point to non-existing pages from the following tables: pagelinks, categorylinks, imagelinks,, , , , ,

Basique
 php maintenance/refreshLinks.php [starting_article]

par exemple, si vous souhaitez que le script commence avec la page dont l'ID est 8,000 :

 php maintenance/refreshLinks.php 8000

Avancé
 php refreshLinks.php [--conf|--dbpass|--dbuser|--dfn-only|--e|--globals|--help|--m|--new-only|--old-redirects-only|--quiet|--redirects-only|--wiki]

Paramètres
This also supports the common options as well.



Exemple de sortie


Eviter les problèmes de mémoire
This script may run into memory issues. To avoid this you may like to set a last page_id to refresh.

 php refreshLinks.php --e 1500

To do the next set of page_ids you enter

 php refreshLinks.php --e 3000 -- 1500

Just continue until all page ids in your wiki were refreshed.

If you forgot to set a last  to refresh and the script runs out of memory simply rerun it with the last output   as the article to start at, e.g.

 php refreshLinks.php -- 1600

Chunking refreshLinks.php to refresh all links without memory leak
Below is an example script to run refreshLinks.php against all pages but without having memory issues.