Project

General

Profile

Bug #61317 ยป 20140902-PackageManager.php

Nils Blattner, 2014-09-02 15:44

 
--- typo3/sysext/core/Classes/Package/PackageManager.php 2014-07-24 08:11:03.000000000 +0200
+++ typo3/sysext/core/Classes/Package/PackageManager.php 2014-09-02 15:32:19.000000000 +0200
@@ -185,7 +185,11 @@
protected function getCacheIdentifier() {
if ($this->cacheIdentifier === NULL) {
if (@file_exists($this->packageStatesPathAndFilename)) {
- $this->cacheIdentifier = md5_file($this->packageStatesPathAndFilename);
+ if (intval($GLOBALS['TYPO3_CONF_VARS']['EXT']['extCache']) === 1) {
+ $this->cacheIdentifier = md5(PATH_site . md5_file($this->packageStatesPathAndFilename));
+ } else {
+ $this->cacheIdentifier = md5_file($this->packageStatesPathAndFilename);
+ }
} else {
$this->cacheIdentifier = NULL;
}
    (1-1/1)