Fixed bug #9268: TCA is not loaded in FE when config cache is disabled
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 9 Sep 2008 08:16:15 +0000 (08:16 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 9 Sep 2008 08:16:15 +0000 (08:16 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4086 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index 9fe72c8..56f6bdf 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-09  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #9268: TCA is not loaded in FE when config cache is disabled
+
 2008-09-08  Benjamin Mack  <benni@typo3.org>
 
        * Fixed bug #9312: felogin: uninitialized vars (Thanks to Steffen Kamper)
index 8551464..ef5b533 100755 (executable)
@@ -2153,8 +2153,12 @@ require_once (PATH_t3lib.'class.t3lib_lock.php');
                                (TYPO3_extTableDef_script?filemtime(PATH_typo3conf.TYPO3_extTableDef_script):'').
                                ($GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'] ? filemtime(PATH_typo3conf.$GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'].'_ext_tables.php') : '')
                        );
-                               // Try to fetch if:
-                       list($TCA,$this->TCAcachedExtras) = unserialize($this->sys_page->getHash($tempHash, 0));
+
+                       if ($this->TYPO3_CONF_VARS['EXT']['extCache'] != 0) {
+                               // Try to fetch if cache is enabled
+                               list($TCA,$this->TCAcachedExtras) = unserialize($this->sys_page->getHash($tempHash, 0));
+                       }
+
                                // If no result, create it:
                        if (!is_array($TCA))    {
                                $this->includeTCA(0);
@@ -2177,9 +2181,11 @@ require_once (PATH_t3lib.'class.t3lib_lock.php');
                                        }
                                }
 
-                                       // Store it in cache:
                                $TCA = $newTc;
-                               $this->sys_page->storeHash($tempHash, serialize(array($newTc,$this->TCAcachedExtras)), 'SHORT TC');
+                               // Store it in cache if cache is enabled
+                               if ($this->TYPO3_CONF_VARS['EXT']['extCache'] != 0) {
+                                       $this->sys_page->storeHash($tempHash, serialize(array($newTc,$this->TCAcachedExtras)), 'SHORT TC');
+                               }
                        }
                }
                $GLOBALS['TT']->pull();