[BUGFIX] Fix ambiguous identifier for imagesizes cache 79/39979/5
authorChristian Reiter <cr@cxd.de>
Fri, 5 Jun 2015 12:00:14 +0000 (14:00 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 6 Jun 2015 13:25:53 +0000 (15:25 +0200)
commit5834ed21c8d5df6747581c9b7d259a710fa7bdf5
tree047bdd11f736b6049d75eaeaf27f6fd61c606ca0
parent0a89783e06fdece357caafe89497e4c3863cdaaf
[BUGFIX] Fix ambiguous identifier for imagesizes cache

Use sha1 of filepath instead of filemtime and filesize as identifier for
cached image dimensions to enable invalidation of stale cached entries
when an image is altered.
This also fixes cache collisions when dimensions are cached for a large
number of images with equal mtimes, some of which may also have equal
filesize, but different dimensions.

Releases: master
Resolves: #67289
Related: #28484
Change-Id: I520a8292dfbf3beb8efae996d286471e641ffd07
Reviewed-on: http://review.typo3.org/39979
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php