Actions
Bug #57950
closedRespect PATH_site while creating cacheIdentifier
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
Start date:
2014-04-15
Due date:
% Done:
0%
Estimated time:
0.25 h
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
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.
Files
Updated by Markus Klein about 10 years ago
- Category set to 1499
- Assignee deleted (
Ernesto Baschny)
Updated by Benni Mack over 9 years ago
- Status changed from New to Closed
- Target version set to 7.4 (Backend)
This is fixed in the package manager.
Actions