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:
1f424d6
)
Fixed LocalFile::isCacheable() to account for object type metadata.
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 14 May 2013 18:06:35 +0000
(11:06 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 14 May 2013 18:06:35 +0000
(11:06 -0700)
Change-Id: I8104201c84ea008446df587650a098f6732b8d39
includes/filerepo/file/LocalFile.php
patch
|
blob
|
history
diff --git
a/includes/filerepo/file/LocalFile.php
b/includes/filerepo/file/LocalFile.php
index
932a1d4
..
b07186d
100644
(file)
--- a/
includes/filerepo/file/LocalFile.php
+++ b/
includes/filerepo/file/LocalFile.php
@@
-1687,7
+1687,8
@@
class LocalFile extends File {
*/
function isCacheable() {
$this->load(); // if loaded from cache, metadata will be null if it didn't fit
- return $this->metadata !== null && strlen( $this->metadata ) <= self::CACHE_FIELD_MAX_LEN;
+ return $this->metadata !== null
+ && strlen( serialize( $this->metadata ) ) <= self::CACHE_FIELD_MAX_LEN;
}
/**