Update memcached client to 1.0.10
[lhc/web/wiklou.git] / maintenance / rebuildall.php
1 <?
2
3 # Rebuild link tracking tables from scratch. This takes several
4 # hours, depending on the database size and server configuration.
5
6 if ( ! is_readable( "../LocalSettings.php" ) ) {
7 print "A copy of your installation's LocalSettings.php\n" .
8 "must exist in the source directory.\n";
9 exit();
10 }
11
12 $DP = "../includes";
13 include_once( "../LocalSettings.php" );
14 include_once( "../AdminSettings.php" );
15
16 include_once( "{$IP}/Setup.php" );
17 include_once( "./rebuildlinks.inc" );
18 include_once( "./rebuildtextindex.inc" );
19 include_once( "./rebuildrecentchanges.inc" );
20 $wgTitle = Title::newFromText( "Rebuild links script" );
21 set_time_limit(0);
22
23 $wgDBuser = $wgDBadminuser;
24 $wgDBpassword = $wgDBadminpassword;
25
26 rebuildLinkTablesPass1();
27 rebuildLinkTablesPass2();
28
29 dropTextIndex();
30 rebuildTextIndex();
31 createTextIndex();
32
33 rebuildRecentChangesTablePass1();
34 rebuildRecentChangesTablePass2();
35
36 print "Done.\n";
37 exit();
38
39 ?>