[BUGFIX] PackageManager no cache if TYPO3 dir has symlinks 38/26838/2
authorAlexander Opitz <opitz.alexander@googlemail.com>
Wed, 15 Jan 2014 14:10:38 +0000 (15:10 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 16 Jan 2014 22:52:23 +0000 (23:52 +0100)
In the PackageManager cache file is a validation of the actual file
path to the file path the cache was last generated. This was written
to invalidate the cache if someone moves TYPO3 around. This comparison
fails on symlinks in path. As you need to clear the complete cache
after moving the typo3 directory for other purposes and as this is no
real use case, we can remove this line.

Resolves: #55022
Releases: 6.2
Change-Id: I12d0fe09a3a7e1b3aad2f08c4bcde7a337cab769
Reviewed-on: https://review.typo3.org/26838
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Package/PackageManager.php

index cd92fe2..e22d883 100644 (file)
@@ -209,7 +209,7 @@ class PackageManager extends \TYPO3\Flow\Package\PackageManager implements \TYPO
                        $this->coreCache->set($packageObjectsCacheEntryIdentifier, serialize($this->packages));
                        $this->coreCache->set(
                                $cacheEntryIdentifier,
-                               'return __DIR__ !== \'' . $cacheEntryPath . '\' ? FALSE : ' . PHP_EOL .
+                               'return ' . PHP_EOL .
                                        var_export($packageCache, TRUE) . ';'
                        );
                }