dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5205405
)
Force LocalFile::purgeMetadataCache use the master DB
author
Gergő Tisza
<tgr.huwiki@gmail.com>
Wed, 18 Mar 2015 17:56:11 +0000
(17:56 +0000)
committer
Gergő Tisza
<tgr.huwiki@gmail.com>
Wed, 18 Mar 2015 17:56:11 +0000
(17:56 +0000)
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
patch
|
blob
|
history
diff --git
a/includes/filerepo/file/LocalFile.php
b/includes/filerepo/file/LocalFile.php
index
be5ca7f
..
b4cced3
100644
(file)
--- 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();
}