An early version of what ultimately became commit
3a6c9d36c used
'ApiPreparedEdit' instead of 'ApiStashEdit'. The class / file were renamed but
not the log group.
Change-Id: Ib4de1f1f21f058d3be627048bc93e7730515d340
$ok = $wgMemc->set( $key, $stashInfo, $ttl );
if ( $ok ) {
$status = 'stashed';
$ok = $wgMemc->set( $key, $stashInfo, $ttl );
if ( $ok ) {
$status = 'stashed';
- wfDebugLog( 'PreparedEdit', "Cached parser output for key '$key'." );
+ wfDebugLog( 'StashEdit', "Cached parser output for key '$key'." );
} else {
$status = 'error';
} else {
$status = 'error';
- wfDebugLog( 'PreparedEdit', "Failed to cache parser output for key '$key'." );
+ wfDebugLog( 'StashEdit', "Failed to cache parser output for key '$key'." );
}
} else {
$status = 'uncacheable';
}
} else {
$status = 'uncacheable';
- wfDebugLog( 'PreparedEdit', "Uncacheable parser output for key '$key'." );
+ wfDebugLog( 'StashEdit', "Uncacheable parser output for key '$key'." );
$editInfo = $wgMemc->get( $key );
$wgMemc->unlock( $key );
$sec = microtime( true ) - $start;
$editInfo = $wgMemc->get( $key );
$wgMemc->unlock( $key );
$sec = microtime( true ) - $start;
- wfDebugLog( 'PreparedEdit', "Waited $sec seconds on '$key'." );
+ wfDebugLog( 'StashEdit', "Waited $sec seconds on '$key'." );
$time = wfTimestamp( TS_UNIX, $editInfo->output->getTimestamp() );
if ( ( time() - $time ) <= 3 ) {
$time = wfTimestamp( TS_UNIX, $editInfo->output->getTimestamp() );
if ( ( time() - $time ) <= 3 ) {
- wfDebugLog( 'PreparedEdit', "Timestamp-based cache hit for key '$key'." );
+ wfDebugLog( 'StashEdit', "Timestamp-based cache hit for key '$key'." );
return $editInfo; // assume nothing changed
}
return $editInfo; // assume nothing changed
}
$change = $dbr->selectField( 'page', '1', $dbr->makeList( $cWhr, LIST_OR ), __METHOD__ );
$n = $dbr->selectField( 'page', 'COUNT(*)', $dbr->makeList( $dWhr, LIST_OR ), __METHOD__ );
if ( $change || $n != count( $dWhr ) ) {
$change = $dbr->selectField( 'page', '1', $dbr->makeList( $cWhr, LIST_OR ), __METHOD__ );
$n = $dbr->selectField( 'page', 'COUNT(*)', $dbr->makeList( $dWhr, LIST_OR ), __METHOD__ );
if ( $change || $n != count( $dWhr ) ) {
- wfDebugLog( 'PreparedEdit', "Stale cache for key '$key'; template changed." );
+ wfDebugLog( 'StashEdit', "Stale cache for key '$key'; template changed." );
$change = $dbr->selectField( 'image', '1', $dbr->makeList( $cWhr, LIST_OR ), __METHOD__ );
$n = $dbr->selectField( 'image', 'COUNT(*)', $dbr->makeList( $dWhr, LIST_OR ), __METHOD__ );
if ( $change || $n != count( $dWhr ) ) {
$change = $dbr->selectField( 'image', '1', $dbr->makeList( $cWhr, LIST_OR ), __METHOD__ );
$n = $dbr->selectField( 'image', 'COUNT(*)', $dbr->makeList( $dWhr, LIST_OR ), __METHOD__ );
if ( $change || $n != count( $dWhr ) ) {
- wfDebugLog( 'PreparedEdit', "Stale cache for key '$key'; file changed." );
+ wfDebugLog( 'StashEdit', "Stale cache for key '$key'; file changed." );
- wfDebugLog( 'PreparedEdit', "Cache hit for key '$key'." );
+ wfDebugLog( 'StashEdit', "Cache hit for key '$key'." );