$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';
- wfDebugLog( 'PreparedEdit', "Failed to cache parser output for key '$key'." );
+ wfDebugLog( 'StashEdit', "Failed to cache parser output for key '$key'." );
}
} 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;
- 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 ) {
- wfDebugLog( 'PreparedEdit', "Timestamp-based cache hit for key '$key'." );
+ wfDebugLog( 'StashEdit', "Timestamp-based cache hit for key '$key'." );
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 ) ) {
- wfDebugLog( 'PreparedEdit', "Stale cache for key '$key'; template changed." );
+ wfDebugLog( 'StashEdit', "Stale cache for key '$key'; template changed." );
return false;
}
$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." );
return false;
}
- wfDebugLog( 'PreparedEdit', "Cache hit for key '$key'." );
+ wfDebugLog( 'StashEdit', "Cache hit for key '$key'." );
return $editInfo;
}