I have a webpage that has about 5 SSIs on it. Each SSI points to a perl script that returns some value (character string between 10-15 characters). The script runs relatively fast when run on it's own (i.e. command line or such) but on this html page - numerous times - it tends to cause the page to really load up slowly. What can I do to speed up the processing of the page? Is this slowness due to the number of calls to the script? Something to do with IIS and how it assigns the tasks out? Etc..,? I've ran it on a few Windows machines running IIS and same results.
Here's a sample of the code :
<li><a href="/path1/<!--#exec cgi="/cgi-bin/somescript.pl?parmNod
+e=1" -->">Item 1</a></li>
<li><a href="/path2/<!--#exec cgi="/cgi-bin/somescript.pl?parmNod
+e=2" -->">Item 2</a></li>
The script acts as a generator of values and has to be on plain html pages that aren't able to get parsed. If anyone has any ideas on how to speed up the SSIs in this case I'd love to hear from you with a possible solution or 2 on how to fix it. Thanks.