[BUGFIX] Fatal error when executing update script 81/43681/2
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 30 Sep 2015 23:18:42 +0000 (19:18 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 30 Sep 2015 23:20:25 +0000 (01:20 +0200)
Remove reference to protected method. If ext_localconf is not loaded,
core cache manager will raise exception complaining about the absence
of configuration for cache 'static_info_tables'.

Resolves: #66011
Change-Id: Ibe83dfd8199d4dd2fde6919326771a64c088cacb
Reviewed-on: http://review.typo3.org/43681
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Classes/Cache/ClassCacheManager.php

index d86bb2b..a03796e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
        * Resolves #70241: Remove reference to removed method
        * Update the manual
        * Resolves #70240: Follow-up to Remove class tx_staticinfotables_div
+       * Resolves #66011: Fatal error when executing update script
 
 2015-09-14  Stanislas Rolland  <typo3@sjbr.ca>
 
index 91da1d7..5804c8f 100644 (file)
@@ -54,11 +54,7 @@ class ClassCacheManager {
         */
        protected function initializeCache() {
                $cacheManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager');
-               if ($cacheManager->hasCache($this->extensionKey)) {
-                       $this->cacheInstance = $cacheManager->getCache($this->extensionKey);
-               } else {
-                       $this->cacheInstance = $cacheManager->createCache($this->extensionKey);
-               }
+               $this->cacheInstance = $cacheManager->getCache($this->extensionKey);
        }
 
        /**