maintenance/rebuildFileCache.php File Reference

Build file cache for content pages. More...

Go to the source code of this file.

Variables

if(!$wgUseFileCache) $wgDisableCounters = false
 $start = isset($args[0]) ? intval($args[0]) : 0
 $overwrite = isset( $args[1] ) && $args[1] === 'overwrite'
 $dbr = wfGetDB( DB_SLAVE )
 $end = $dbr->selectField( 'page', 'MAX(page_id)', false, __FUNCTION__ )
if(!$start) $_SERVER ['HTTP_ACCEPT_ENCODING'] = 'bgzip'
 $BATCH_SIZE = 100
 $blockStart = $start
 $blockEnd = $start + $BATCH_SIZE - 1
 $dbw = wfGetDB( DB_MASTER )
 while ($blockEnd<=$end)


Detailed Description

Build file cache for content pages.

Definition in file rebuildFileCache.php.


Variable Documentation

if (!$start) $_SERVER['HTTP_ACCEPT_ENCODING'] = 'bgzip'

$BATCH_SIZE = 100

Definition at line 32 of file rebuildFileCache.php.

$blockEnd = $start + $BATCH_SIZE - 1

$blockStart = $start

$dbr = wfGetDB( DB_SLAVE )

Definition at line 22 of file rebuildFileCache.php.

$dbw = wfGetDB( DB_MASTER )

Definition at line 38 of file rebuildFileCache.php.

$end = $dbr->selectField( 'page', 'MAX(page_id)', false, __FUNCTION__ )

Definition at line 24 of file rebuildFileCache.php.

$overwrite = isset( $args[1] ) && $args[1] === 'overwrite'

Definition at line 18 of file rebuildFileCache.php.

Referenced by UploadForm::internalProcessUpload().

$start = isset($args[0]) ? intval($args[0]) : 0

Definition at line 17 of file rebuildFileCache.php.

if (!$wgUseFileCache) $wgDisableCounters = false

Definition at line 15 of file rebuildFileCache.php.

while($blockEnd<=$end)

Definition at line 40 of file rebuildFileCache.php.


Generated on Sat Sep 5 02:08:28 2009 for MediaWiki by  doxygen 1.5.9