wiki.techinc.nl/maintenance
Timo Tijhof 2549c49562 (bug 40340) Fix cache issues with changing user groups
* migrateUserGroup.php: Call User::invalidateCache

* While at it, also fix the issue where User::clearInstanceCache
  did not clear cache for User::getGroups.

  Although it does clear the caches of methods used to calculate
  other group-related lists (such as User::getEffectiveGroups),
  the one for the query from user_groups was still cached in
  $this->mGroups.

  Presumably this was forgotten when this pattern was introduced
  as the instance cache precedes the user_group table.

Change-Id: I22abdba00f8ccf587a3d7696e57970ed4653afc8
2012-12-28 14:35:49 +00:00
..
archives [Upload] [Schema] Added us_props column to avoid expensive GETs. 2012-12-03 10:23:40 -08:00
benchmarks Make benmark duration output more prettier. 2012-09-11 17:31:01 +00:00
cssjanus Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
dev Make maintenance/dev/'s .sh files executable. 2012-10-14 08:50:37 -07:00
hiphop Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
ibm_db2 Back out config table and related code 2012-10-29 15:17:24 +00:00
language misc style fix 2012-12-20 16:09:25 +01:00
locking [LockManager] Use proper hmac function for LSLockManager. 2012-11-22 19:35:15 -08:00
mssql Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
oracle Back out config table and related code 2012-10-29 15:17:24 +00:00
postgres Bug 42039 - Fix some file-related issues in the distribution 2012-11-12 09:37:28 -05:00
sqlite/archives update.php now create profiling table when needed 2012-11-19 12:38:32 +01:00
storage ExternalStoreDB.php was moved to externalstore folder in c37937 2012-12-10 23:55:27 +01:00
term Improve documentation of maintenance scripts and test suite. 2012-10-02 22:24:33 +02:00
.htaccess
7zip.inc
attachLatest.php merged master 2012-08-29 15:20:15 +02:00
backup.inc merge latest master. 2012-09-05 17:50:13 +02:00
backupPrefetch.inc
backupTextPass.inc misc style fix 2012-12-20 16:09:25 +01:00
cdb.php merged master 2012-08-29 15:20:15 +02:00
changePassword.php merged master 2012-08-29 15:20:15 +02:00
checkBadRedirects.php merged master 2012-08-29 15:20:15 +02:00
checkImages.php merged master 2012-08-29 15:20:15 +02:00
checkSyntax.php merged master 2012-08-29 15:20:15 +02:00
checkUsernames.php merged master 2012-08-29 15:20:15 +02:00
cleanupAncientTables.php merged master 2012-08-29 15:20:15 +02:00
cleanupCaps.php merged master 2012-08-29 15:20:15 +02:00
cleanupImages.php merged master 2012-08-29 15:20:15 +02:00
cleanupPreferences.php Add some __METHOD__ to begin/commit/rollback calls 2012-12-01 15:04:10 +01:00
cleanupRemovedModules.php merged master 2012-08-29 15:20:15 +02:00
cleanupSpam.php merged master 2012-08-29 15:20:15 +02:00
cleanupTable.inc merge latest master. 2012-09-05 17:50:13 +02:00
cleanupTitles.php merged master 2012-08-29 15:20:15 +02:00
cleanupUploadStash.php When deleting old thumbnails, actually increment $i 2012-10-21 15:15:22 +01:00
cleanupWatchlist.php merged master 2012-08-29 15:20:15 +02:00
clear_interwiki_cache.php merged master 2012-08-29 15:20:15 +02:00
clear_stats.php merged master 2012-08-29 15:20:15 +02:00
commandLine.inc merged master 2012-08-29 15:20:15 +02:00
compareParsers.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
convertLinks.php merged master 2012-08-29 15:20:15 +02:00
convertUserOptions.php Add some __METHOD__ to begin/commit/rollback calls 2012-12-01 15:04:10 +01:00
copyFileBackend.php merged master 2012-08-29 15:20:15 +02:00
createAndPromote.php merged master 2012-08-29 15:20:15 +02:00
deleteArchivedFiles.inc Add separate fa_sha1 field to filearchive table 2012-10-14 20:58:25 +02:00
deleteArchivedFiles.php merged master 2012-08-29 15:20:15 +02:00
deleteArchivedRevisions.inc Improve documentation of maintenance scripts. 2012-07-08 22:50:22 +02:00
deleteArchivedRevisions.php merged master 2012-08-29 15:20:15 +02:00
deleteBatch.php merged master 2012-08-29 15:20:15 +02:00
deleteDefaultMessages.php merged master 2012-08-29 15:20:15 +02:00
deleteImageMemcached.php merged master 2012-08-29 15:20:15 +02:00
deleteOldRevisions.php (bug 42601) Make deleteOldRevisions.php no longer throw database errors on empty sets. 2012-12-03 16:17:58 +00:00
deleteOrphanedRevisions.php Add some __METHOD__ to begin/commit/rollback calls 2012-12-01 15:04:10 +01:00
deleteRevision.php merged master 2012-08-29 15:20:15 +02:00
deleteSelfExternals.php merged master 2012-08-29 15:20:15 +02:00
doMaintenance.php Disable the db LCStore if the maintenance script doesn't need a db. 2012-06-26 18:58:37 +02:00
Doxyfile Merge "doxygen now recognizes README and .txt files" 2012-10-22 12:04:49 +00:00
dumpBackup.php merged master 2012-08-29 15:20:15 +02:00
dumpIterator.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
dumpLinks.php merged master 2012-08-29 15:20:15 +02:00
dumpSisterSites.php merged master 2012-08-29 15:20:15 +02:00
dumpTextPass.php merged master 2012-08-29 15:20:15 +02:00
dumpUploads.php merged master 2012-08-29 15:20:15 +02:00
edit.php merged master 2012-08-29 15:20:15 +02:00
eval.php Remove a bunch of trailing spaces and unneeded newlines 2012-10-10 20:14:40 +02:00
fetchText.php merged master 2012-08-29 15:20:15 +02:00
fileOpPerfTest.php Added "parallelize" option to file performance test script. 2012-09-22 12:10:41 -07:00
findHooks.php Updates findHooks.php for ContentHandler changes. 2012-10-12 08:32:13 +02:00
fixDoubleRedirects.php Use JobQueueGroup::singleton() 2012-12-07 20:30:45 +01:00
fixExtLinksProtocolRelative.php merged master 2012-08-29 15:20:15 +02:00
fixSlaveDesync.php merged master 2012-08-29 15:20:15 +02:00
fixTimestamps.php merged master 2012-08-29 15:20:15 +02:00
fixUserRegistration.php merged master 2012-08-29 15:20:15 +02:00
formatInstallDoc.php merged master 2012-08-29 15:20:15 +02:00
fuzz-tester.php misc style fix 2012-12-20 16:09:25 +01:00
generateSitemap.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
getLagTimes.php merged master 2012-08-29 15:20:15 +02:00
getSlaveServer.php merged master 2012-08-29 15:20:15 +02:00
getText.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
importDump.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
importImages.inc Add an option to importImages to search subdirectories recursively 2012-12-20 09:56:10 +00:00
importImages.php Add an option to importImages to search subdirectories recursively 2012-12-20 09:56:10 +00:00
importSiteScripts.php Cleanup of Wikidata branch. 2012-10-08 17:34:47 +02:00
importTextFile.php merged master 2012-08-29 15:20:15 +02:00
initEditCount.php merged master 2012-08-29 15:20:15 +02:00
initStats.php merged master 2012-08-29 15:20:15 +02:00
install.php Add warnings to install.php for files-options 2012-10-07 08:26:49 +02:00
interwiki.list Alphabetically sort the interwikis. 2012-04-02 19:56:26 +02:00
interwiki.sql Alphabetically sort the interwikis. 2012-04-02 19:56:26 +02:00
jsparse.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
lag.php merged master 2012-08-29 15:20:15 +02:00
Maintenance.php (bug 38110) provide a way to separate out schema changes 2012-11-21 22:53:24 -05:00
Makefile
mcc.php merged master 2012-08-29 15:20:15 +02:00
mctest.php merged master 2012-08-29 15:20:15 +02:00
mergeMessageFileList.php merged master 2012-08-29 15:20:15 +02:00
migrateUserGroup.php (bug 40340) Fix cache issues with changing user groups 2012-12-28 14:35:49 +00:00
minify.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
moveBatch.php merged master 2012-08-29 15:20:15 +02:00
mwdoc-filter.php merging latest master 2012-08-20 16:55:28 +02:00
mwdocgen.php Also pass $doxygenInputFilter as parameter instead of global. 2012-12-06 23:29:44 +01:00
namespaceDupes.php (bug 42269) namespaceDupes.php has to use the interwiki cache 2012-12-20 16:42:04 +00:00
nextJobDB.php [JobQueue] Fixed some old race conditions in nextJobDB.php 2012-11-27 03:04:01 +00:00
nukeNS.php merged master 2012-08-29 15:20:15 +02:00
nukePage.php merged master 2012-08-29 15:20:15 +02:00
orphans.php merged master 2012-08-29 15:20:15 +02:00
parse.php merged master 2012-08-29 15:20:15 +02:00
patchSql.php merged master 2012-08-29 15:20:15 +02:00
populateCategory.php merged master 2012-08-29 15:20:15 +02:00
populateFilearchiveSha1.php (bug 38110) provide a way to separate out schema changes 2012-11-21 22:53:24 -05:00
populateImageSha1.php merged master 2012-08-29 15:20:15 +02:00
populateLogSearch.php merged master 2012-08-29 15:20:15 +02:00
populateLogUsertext.php merged master 2012-08-29 15:20:15 +02:00
populateParentId.php merged master 2012-08-29 15:20:15 +02:00
populateRevisionLength.php (bug 38110) provide a way to separate out schema changes 2012-11-21 22:53:24 -05:00
populateRevisionSha1.php (bug 38110) provide a way to separate out schema changes 2012-11-21 22:53:24 -05:00
preprocessDump.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
preprocessorFuzzTest.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
protect.php Remove some unused local variables. 2012-10-08 02:05:49 +02:00
proxy_check.php Added missing GPLv2 headers in some places. 2012-06-14 14:26:37 +02:00
pruneFileCache.php merged master 2012-08-29 15:20:15 +02:00
purgeDeletedFiles.php merged master 2012-08-29 15:20:15 +02:00
purgeList.php merged master 2012-08-29 15:20:15 +02:00
purgeOldText.inc More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
purgeOldText.php merged master 2012-08-29 15:20:15 +02:00
purgeParserCache.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
README Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
reassignEdits.php merged master 2012-08-29 15:20:15 +02:00
rebuildall.php merged master 2012-08-29 15:20:15 +02:00
rebuildFileCache.php merged master 2012-08-29 15:20:15 +02:00
rebuildImages.php merge latest master. 2012-09-05 17:50:13 +02:00
rebuildLocalisationCache.php merged master 2012-08-29 15:20:15 +02:00
rebuildmessages.php merged master 2012-08-29 15:20:15 +02:00
rebuildrecentchanges.php Use User::getGroupsWithPermission 2012-10-02 23:51:48 +00:00
rebuildtextindex.php Remove unused globals 2012-12-27 14:04:53 +01:00
refreshFileHeaders.php Added a script to populate file HTTP headers for existing files. 2012-11-28 09:00:01 +00:00
refreshImageMetadata.php merged master 2012-08-29 15:20:15 +02:00
refreshLinks.php The class is named Revision, no need to shout its name :) 2012-10-26 23:41:24 +02:00
removeUnusedAccounts.php (bug 34581) RemoveUnusedAccounts: Ignore newuser log. 2012-12-24 05:06:05 +01:00
renameDbPrefix.php merged master 2012-08-29 15:20:15 +02:00
renderDump.php Removal of unused globals. 2012-11-26 22:15:11 +01:00
resetUserTokens.php merged master 2012-08-29 15:20:15 +02:00
rollbackEdits.php merged master 2012-08-29 15:20:15 +02:00
runBatchedQuery.php merged master 2012-08-29 15:20:15 +02:00
runJobs.php (bug 41457) PHP Fatal error: Cannot break/continue 2 levels in maintenance/runJobs.php on line 94 2012-10-27 21:34:34 +01:00
showJobs.php merge latest master. 2012-09-05 17:50:13 +02:00
showStats.php merge latest master. 2012-09-05 17:50:13 +02:00
sql.php Merge "alter sql.php prompt on line continuation" 2012-10-25 13:35:32 +00:00
sqlite.inc Update docs for return and exception info 2012-10-09 09:41:58 +00:00
sqlite.php merge latest master. 2012-09-05 17:50:13 +02:00
stats.php merge latest master. 2012-09-05 17:50:13 +02:00
syncFileBackend.php Added "posdump" option to syncFileBackend to dump the current position. 2012-10-04 11:43:59 -07:00
tables.sql Revert "Commit of various live hacks" 2012-12-10 20:56:45 -05:00
undelete.php merged master 2012-08-29 15:20:15 +02:00
update.php (bug 38110) provide a way to separate out schema changes 2012-11-21 22:53:24 -05:00
updateArticleCount.php merge latest master. 2012-09-05 17:50:13 +02:00
updateCollation.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
updateDoubleWidthSearch.php merge latest master. 2012-09-05 17:50:13 +02:00
updateRestrictions.php merge latest master. 2012-09-05 17:50:13 +02:00
updateSearchIndex.php (bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title 2012-09-29 17:19:40 +02:00
updateSpecialPages.php Output special page name before attempting to run function 2012-11-16 23:20:58 +00:00
userDupes.inc
userOptions.inc merged master 2012-08-29 15:20:15 +02:00
userOptions.php merge latest master. 2012-09-05 17:50:13 +02:00
waitForSlave.php merge latest master. 2012-09-05 17:50:13 +02:00

== MediaWiki Maintenance ==

The .sql scripts in this directory are not intended to be run standalone,
although this is appropriate in some cases, e.g. manual creation of blank tables
prior to an import.

Most of the PHP scripts need to be run from the command line. Prior to doing so,
ensure that the LocalSettings.php file in the directory above points to the
proper installation.

Certain scripts will require elevated access to the database. In order to
provide this, first create a MySQL user with "all" permissions on the wiki
database, and then set $wgDBadminuser and $wgDBadminpassword in your
LocalSettings.php

=== Brief explanation of files ===

A lot of the files in this directory are PHP scripts used to perform various
maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
the search indices, etc. The files in the "archives" directory are used to
upgrade the database schema when updating the software. Some schema definitions
for alternative (as yet unsupported) database management systems are stored
here too.

The "storage" directory contains scripts and resources useful for working with
external storage clusters, and are not likely to be particularly useful to the
vast majority of installations. This directory does contain the compressOld
scripts, however, which can be useful for compacting old data.

=== Maintenance scripts ===

As noted above, these should be run from the command line. Not all scripts are
listed, as some are Wikimedia-specific, and some are not applicable to most
installations.

	changePassword.php
	Reset the password of a specified user

	cleanupSpam.php
	Mass-revert insertion of linkspam

	createAndPromote.php
	Create a user with administrator (and optionally, bureaucrat) permissions

	deleteOldRevisions.php
	Erase old revisions of pages from the database

	dumpBackup.php
	Backup dump script

	edit.php
	Edit a page to change its content

	findhooks.php
	Find hooks that aren't documented in docs/hooks.txt

	importDump.php
	XML dump importer

	importImages.php
	Import images into the wiki

	importTextFile.php
	Import the contents of a text file into a wiki page

	moveBatch.php
	Move a batch of pages

	namespaceDupes.php
	Check articles name to see if they conflict with new/existing namespaces

	nukePage.php
	Wipe a page and all revisions from the database

	reassignEdits.php
	Reassign edits from one user to another

	rebuildImages.php
	Update image metadata records

	rebuildmessages.php
	Update the MediaWiki namespace after changing site language

	rebuildtextindex.php
	Rebuild the fulltext search indices

	refreshLinks.php
	Rebuild the link tables

	removeUnusedAccounts.php
	Remove user accounts which have made no edits

	runJobs.php
	Immediately complete all jobs in the job queue

	stats.php
	Show all statistics stored in the cache

	undelete.php
	Undelete all revisions of a page

	update.php
	Check and upgrade the database schema to the current version

	updateRestrictions.php
	Update pages restriction to the new schema

	userOptions.php
	Change user options