(Bug 20744) - Wiki forgets about an uploaded file
authorPlatonides <platonides@users.mediawiki.org>
Tue, 31 Aug 2010 11:12:33 +0000 (11:12 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 31 Aug 2010 11:12:33 +0000 (11:12 +0000)
commit763f56b2ab37bcbb4c34524c64ac85f67a38426f
treebf030b66bd9756f7997c1d229e06ba9d103403ea
parented978a1f4fff85cf111b715dc4853dad63f98475
(Bug 20744) - Wiki forgets about an uploaded file
(Bug 24978) - "A file disappeared" thread on Commons:VP
Only save the LocalFile to memcache after the db entry has been commited.
Otherwise, when the transaction fails, the file apparently succeeded, but
after a week (memcached expiry) it disappears.
Fixes bug 20744 and bug 24978. Found by the Great Domas.

The correlation with db problems is probably just that in such case there are more transactions get rollbacked.
RELEASE-NOTES
includes/filerepo/LocalFile.php