#57950Respect PATH_site while creating cacheIdentifier
Description
Since TYPO2 6.2 the cacheIdentifier is defined by the Package Stated file name:
# TYPO3\CMS\Core\Package\PackageManager; 188: $this->cacheIdentifier = md5_file($this->packageStatesPathAndFilename)
Before the cache identifier was defined by including the PATH_site constant:
static::$classLoaderCacheIdentifier = 'ClassLoader_' . sha1((TYPO3_version . PATH_site . 'ClassLoader'));
This leads to some problems, when TYPO3 is running under different paths, for example:
http://test.local https://sslproxy.local/subfolder/
In this case of an SSL proxy https://sslproxy.local/subfolder/ is a symlink to the main directory.
In the past TYPO3 was generating different cache files (for example ClassLoader, etc.) with different paths.
Now, with 6.2, this is not working any more because the cache identifier is only dependent from the Package State file name.
My suggestion is to do it this way:
188:$this->cacheIdentifier = md5(PATH_site . md5_file($this->packageStatesPathAndFilename));
I´ve attached a patch to this ticket.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.