Extension:GlobalUsage

GlobalUsage is an extension to view the global usage of images in a wiki farm with shared image repository. It adds Special:GlobalUsage as well as a list of pages that include the image on image description pages.

Installation

 * 1) Download the extension and unpack it in the extensions directory
 * 2) Source GlobalUsage.sql: php maintenance/sql.php extensions/GlobalUsage/GlobalUsage.sql
 * Note: do this from the wiki installation where you want the GlobalUsage data to be located. Typically this is your shared image repository.
 * 1) Edit LocalSettings.php and add to the bottom of the file: require_once( "$IP/extensions/GlobalUsage/GlobalUsage.php" );
 * 2) In LocalSettings, set $wgGlobalUsageDatabase to the identifier of the wiki where the GlobalUsage data is located (usually the database name). It should be something understandable to wfGetDB. Example: $wgGlobalUsageDatabase = 'commonswiki';
 * At present, this cannot be NOT a database name of the wiki, but must be a name given in a load balancer configuration: Manual:$wgLBFactoryConf -- it might be that on a setup without a multi-master-database Loadbalancer, the extension is not usable.


 * 1) Run refreshGlobalimagelinks.php on all wikis in your farm. This will take a long time. php extensions/GlobalUsage/refreshGlobalimagelinks.php
 * 2) Visit Special:GlobalUsage and enjoy.

Bugs
Use BugZilla, product MediaWiki extensions, component GlobalUsage.