[BUGFIX] Use PATH_site in cache identifier for package cache 80/31580/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 10 Jul 2014 16:10:10 +0000 (18:10 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 13 Jul 2014 20:28:04 +0000 (22:28 +0200)
commit9f6150fa94df76bec24b977752f57eb0605c0214
treedc1b358d26a3873315a4d54cf821c1b61138ad6c
parent303fa53fd07a0b16e3b7d93e4f1cf5eed6b94ea4
[BUGFIX] Use PATH_site in cache identifier for package cache

The package cache writes paths to extension directories
(TYPO3_LOADED_EXT) into the cache.

This will result in wrong caches when the same
TYPO3 instance is called from a different absolute
directory e.g. from a different mount or symlink.

To avoid this, the cache identifier now includes
PATH_site which is the current absolute path
of the TYPO3 instance.

Additionally we now only include the modification
time of the package states file instead of the
md5 of the complete content into account, which should
be much faster and also enough.

Resolves: #58288
Releases: 6.2, 6.3
Change-Id: I7c8de41c608beab282f2b8bbeab39f257a9a6a6f
Reviewed-on: https://review.typo3.org/31580
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/core/Classes/Package/PackageManager.php