Why: - When a revision is imported and the wiki is configured to show category changes in RecentChanges, a CategoryMembershipChangeJob is enqueued that in turn runs CategoryMembershipChange for each category change. - The resulting RC entries use the timestamp of the imported revision, rather than the current time. - If the revision being imported is older than $wgRCMaxAge, this can cause the RC entries to be immediately deleted with a 1/10 chance by a probabilistically enqueued RecentChangesUpdateJob. What: - Use the current timestamp for RC entries derived from CategoryMembershipChange instances created for imported revisions, instead of using the revision's timestamp. Bug: T377932 Change-Id: Id697087b29e76ac64885f8c7a0e670f201474449 (cherry picked from commit 83d6c6870c1dca7e063bb4ac82c8675b085cc0fb) |
||
|---|---|---|
| .. | ||
| ImportableOldRevisionImporterTest.php | ||
| ImportExportTest.php | ||
| ImportFailureTest.php | ||
| ImportLinkCacheIntegrationTest.php | ||
| ImportTemporaryUserIntegrationTest.php | ||
| ImportTest.php | ||