Project

General

Profile

Actions

Bug #57950

closed

Respect PATH_site while creating cacheIdentifier

Added by Henrik Braune about 10 years ago. Updated almost 9 years ago.

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

PackageManager.patch (769 Bytes) PackageManager.patch Henrik Braune, 2014-04-15 15:44

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #61317: PackageManager caches absolute paths for different PATH_siteClosed2014-09-02

Actions
Actions #1

Updated by Henrik Braune about 10 years ago

  • Assignee set to Ernesto Baschny
Actions #2

Updated by Markus Klein over 9 years ago

  • Category set to 1499
  • Assignee deleted (Ernesto Baschny)
Actions #3

Updated by Benni Mack almost 9 years ago

  • Status changed from New to Closed
  • Target version set to 7.4 (Backend)

This is fixed in the package manager.

Actions

Also available in: Atom PDF