- // Don't max() because older files are significant.
- // While the associated file names are significant, that is already taken care of by the
- // definition summary. Avoid creating an array keyed by file path here because those are
- // absolute file paths. Including that would needlessly cause global cache invalidation
- // when the MediaWiki installation path changes (which is quite common in cases like
- // Wikimedia where the installation path reflects the MediaWiki branch name).
- return array_map( array( __CLASS__, 'safeFilemtime' ), $files );
+ // Don't include keys or file paths here, only the hashes. Including that would needlessly
+ // cause global cache invalidation when files move or if e.g. the MediaWiki path changes.
+ // Any significant ordering is already detected by the definition summary.
+ return array_map( array( __CLASS__, 'safeFileHash' ), $files );