I actually want to save a static copy of the front page to improve load times. My fastcgi process sometimes disappears (I&#39;m on shared hosting and I think they auto-cancel stale processes), and it takes a while for the process to be restarted, which impacts the first page load. Subsequent pages are faster but it&#39;s the first page that makes the impression on the user. The static plugin does not work, because that requires fastcgi to be running, and my app is too small for me to set up squid. <br>
<br>So I want to redirect the front page to a static page, but regenerate the static page, and also force the app to do something (so the server can restart the fastcgi process before the user requests any other page).<br>
<br><div class="gmail_quote">2008/6/23 Jonathan Rockway &lt;<a href="mailto:jon@jrock.us">jon@jrock.us</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">* On Mon, Jun 23 2008, Martin Ellison wrote:<br>
&gt; Sorry, bit of a newbie question: is there any way that I can run an action but<br>
&gt; capture the results (server-side) to a file? Doing so client side is easy (eg<br>
&gt; wget) but I want to keep the page text on the server and to automate the page<br>
&gt; generation/save.<br>
<br>
</div>If you want to log the output of every request, you probably want to<br>
wrap finalize and save the file after it runs.<br>
<br>
If you want to run an arbitrary request against your application and see<br>
the result, you want the Subrequest plugin. &nbsp;It would be better for your<br>
app to not depend upon your app, though. &nbsp;Calling a method is simpler,<br>
faster, and cleaner than running an entire request and capturing the<br>
result, so try to structure your app in such a way as to allow that.<br>
<br>
Regards,<br>
Jonathan Rockway<br>
<font color="#888888"><br>
--<br>
print just =&gt; another =&gt; perl =&gt; hacker =&gt; if $,=$&quot;<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Martin<br>(<a href="mailto:m.e@acm.org">m.e@acm.org</a>)<br>IT: <a href="http://methodsupport.com">http://methodsupport.com</a> Personal: <a href="http://thereisnoend.org">http://thereisnoend.org</a>