summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
df96f23)
The indexing pre-calculates the file hash and stores it in
the sys_file table. Sadly the getter of file objects never looks
at this again and always recalculates the hash via the driver,
which is very slow.
Resolves: #54235
Releases: 6.2, 6.1, 6.0
Change-Id: I16bfa2126031f26b8e31da8d8c0b3fc07d0217dc
Reviewed-on: https://review.typo3.org/26689
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Oliver Klee
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
return $this->getStorage()->getFileContents($this);
}
return $this->getStorage()->getFileContents($this);
}
+ /**
+ * Gets SHA1 hash.
+ *
+ * @return string
+ */
+ public function getSha1() {
+ if (empty($this->properties['sha1'])) {
+ $this->properties['sha1'] = parent::getSha1();
+ }
+ return $this->properties['sha1'];
+ }
+
/**
* Replace the current file contents with the given string
*
/**
* Replace the current file contents with the given string
*