From 00e925fe9200ae0808a240a567afc43bf3a456d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerg=C5=91=20Tisza?= Date: Wed, 18 Mar 2015 17:56:11 +0000 Subject: [PATCH] Force LocalFile::purgeMetadataCache use the master DB This used to happen automatically via markVolatile() but that was removed in I808c3a6, which caused cache updates after move/delete to retain outdated information from slaves. Bug: T93009 Bug: T88506 Change-Id: Ie4a6c5fbecec9b38ad3ff45fbc22c5d74d66601c --- includes/filerepo/file/LocalFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index be5ca7f954..b4cced385b 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -842,7 +842,7 @@ class LocalFile extends File { * Refresh metadata in memcached, but don't touch thumbnails or squid */ function purgeMetadataCache() { - $this->loadFromDB(); + $this->loadFromDB( File::READ_LATEST ); $this->saveToCache(); $this->purgeHistory(); } -- 2.20.1