that is a good example for trying to use DTML where it should not be used anymore. i suggest you move this logic into a more appropriate kind of object, such as a python script. jens On Monday, May 27, 2002, at 09:25 , Hamzat Kamal wrote:
Hi,
I have 2 nested loops, where the outer one iterated over folders and the inner one iterated over the dtml documents in each folder.
I noticed that when the traffic is high, the site become inaccessible.
could the problem caused by the loops?
<dtml-in "news.objectValues(['Folder'])"> <dtml-let number=sequence-number path=id> <dtml-if expr="number < _.int(num)"> <dtml-in "objectValues(['DTML Document'])"> <dtml-try> <dtml-call "REQUEST.set('mm', ZopeTime().toZone('GMT+1').strftime('%d%m%y'))"> <dtml-let test=sequence-item> <dtml-if expr="mm==test"> <font face=arial size=-5> <dtml-var expr="_.getitem(mm,1)[0:400]">....<br> <a href="&dtml-ngrHome;news/&dtml-path;"> <img src="images/morex.gif" border="0" width="60" height="23"> </a><br> <dtml-if expr="number < _.int(num)-1"> <hr size="2" width="75%"> </dtml-if> </font> </dtml-if> </dtml-let> <dtml-except> </dtml-try> </dtml-in> </dtml-if> </dtml-let> </dtml-in>
===== Hamzat kamaldeen Ishola