<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Dear list,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This is actually a general issue explained on a example of the templavoila API function.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Why the TCA array is shrinking after a page reload (page was cached). <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>In the </span><u><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:yellow;mso-highlight:yellow'>ds_getExpandedDataStructure</span></u><u><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> </span></u><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>function of the class.tx_templavoila_api.php file is following code:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>            t3lib_div::<i>loadTCA</i> ($table);</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>            </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>$conf = $TCA[$table][</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>'columns'</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>][</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>'tx_templavoila_flex'</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>][</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>'config'</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>];<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>$table is &#8216;pages&#8217; in that case.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I&#8217;m reloading my page which uses this api function and count(</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>$TCA[$table][</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>'columns'</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>]</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>) is for example 64 after that I&#8217;m hiting F5 and the count(</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>$TCA[$table][</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>'columns'</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>]</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>) is only 44 </span><span lang=EN-US style='font-size:10.0pt;font-family:Wingdings'>à</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'> without any additional fields from extensions and so on.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>But the loadTCA function should read the whole temp_CACHED*** files.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Could anybody figure out whats the problem is in that case?Is my description comprehensible?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Regards<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Andrej Maya</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>