[SMARTY] Performance randomly VERY low...
Gereon <[email protected]> Sun, 14 Jan 2007 20:12:32 +0100
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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&nav2=anzeigen&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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php