Performance randomly VERY low...

From: Date: Sun, 14 Jan 2007 19:12:32 +0000
Subject: Performance randomly VERY low...
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13666@lists.php.net to get a copy of this message
Hi, I have a quite simple template here... Beside of some HTML stuff, it consits of this single foreach... {foreach from=$artikel item=aktitem} <tr> <td>{if $aktitem.bildid==0}Kein Bild<br />Vorhanden{else}<img src="mimes/{$aktitem.id}/{$aktitem.bildid}" width="50">{/if}</td> <td><a href="?nav=artikel&amp;nav2=anzeigen&amp;artikelid={$aktitem.id}">{$aktitem.titel}</a></td> <td>{$aktitem.preis} {$aktitem.waehrung}</td> <td>{$aktitem.minmenge} {$aktitem.bestelleinheit}</td> <td>{$aktitem.matchresult}</td> <td>{$aktitem.stmt}</td> </tr> {/foreach} the $artikel-array has about 20 to 40 elements... normally, it takes less than 100 ms to execute it but sometimes, i can't really say when or why, it takes 2.5 seconds and even more (record was about 4 seconds!) I checked the file in the cache, it's timestamp did not change, so smarty did NOT recompile it if i put this foreach in {literal}{/literal} the execution time drops to 40ms....constantly any idea? gereon kremer

« previous php.smarty.general (#13666) next »