dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump LocalFile::VERSION to invalidate file page cache
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
file
/
LocalFile.php
diff --git
a/includes/filerepo/file/LocalFile.php
b/includes/filerepo/file/LocalFile.php
index
96e7a7e
..
a623c54
100644
(file)
--- a/
includes/filerepo/file/LocalFile.php
+++ b/
includes/filerepo/file/LocalFile.php
@@
-43,7
+43,7
@@
use Wikimedia\Rdbms\IDatabase;
* @ingroup FileAbstraction
*/
class LocalFile extends File {
* @ingroup FileAbstraction
*/
class LocalFile extends File {
- const VERSION = 1
0
; // cache version
+ const VERSION = 1
1
; // cache version
const CACHE_FIELD_MAX_LEN = 1000;
const CACHE_FIELD_MAX_LEN = 1000;
@@
-351,9
+351,8
@@
class LocalFile extends File {
static $results = [];
if ( $prefix == '' ) {
static $results = [];
if ( $prefix == '' ) {
- return
$fields
;
+ return
array_merge( $fields, [ 'description' ] )
;
}
}
-
if ( !isset( $results[$prefix] ) ) {
$prefixedFields = [];
foreach ( $fields as $field ) {
if ( !isset( $results[$prefix] ) ) {
$prefixedFields = [];
foreach ( $fields as $field ) {