When uploading a new file, save to memcached directly after commit
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 6 Apr 2014 02:50:10 +0000 (23:50 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Sun, 6 Apr 2014 02:30:22 +0000 (02:30 +0000)
commitceb5abb7e053461820005f142921efdbbf4c93b5
tree8e773589d6a9d6ed48d29b92d91517a2d02c635b
parent9fc959d1094e22ac3dfe6b2f4ca5dc6d91bbd4cb
When uploading a new file, save to memcached directly after commit

Previously if an exception was thrown when creating the description
page, the old (negative) memcached entry would not be purged, and
the file would appear not to exist until 24 hours later.

This way, as soon as we have the image row committed to db, we
change the memcache entry, so memcache of image row always looks
like actual image row.

Bug: 32551
Change-Id: I9c260e9a4a1e0d6ade1771542dd834f969904cef
includes/filerepo/file/LocalFile.php