Avoid using stale data for revision visibility and actor data
authorBill Pirkle <bpirkle@wikimedia.org>
Wed, 27 Feb 2019 21:26:17 +0000 (15:26 -0600)
committerBill Pirkle <bpirkle@wikimedia.org>
Sun, 10 Mar 2019 20:34:44 +0000 (15:34 -0500)
commit276bf4a76b7ca968012d9b14e9645468c9566c16
tree7bd9d053fab075c5e92e489093b0b0dc5bd105f4
parentda97c1faad320a47c2f574f00d952f90518960ef
Avoid using stale data for revision visibility and actor data

Created class RevisionStoreCacheRecord to avoid returning stale
cached revision visibility and actor data when changes were
made after the cache was populated for that revision.

Bug: T216159
Change-Id: Iabed80e06a08ff0793dfe64db881cbcd535cb13f
includes/Revision/RevisionStore.php
includes/Revision/RevisionStoreCacheRecord.php [new file with mode: 0644]
tests/common/TestsAutoLoader.php
tests/phpunit/includes/Revision/RevisionStoreCacheRecordTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionStoreDbTestBase.php
tests/phpunit/includes/Revision/RevisionStoreTest.php