I actually want to save a static copy of the front page to improve load
times. My fastcgi process sometimes disappears (I'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'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.

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).

2008/6/23 Jonathan Rockway <[EMAIL PROTECTED]>:

> * On Mon, Jun 23 2008, Martin Ellison wrote:
> > Sorry, bit of a newbie question: is there any way that I can run an
> action but
> > capture the results (server-side) to a file? Doing so client side is easy
> (eg
> > wget) but I want to keep the page text on the server and to automate the
> page
> > generation/save.
>
> If you want to log the output of every request, you probably want to
> wrap finalize and save the file after it runs.
>
> If you want to run an arbitrary request against your application and see
> the result, you want the Subrequest plugin.  It would be better for your
> app to not depend upon your app, though.  Calling a method is simpler,
> faster, and cleaner than running an entire request and capturing the
> result, so try to structure your app in such a way as to allow that.
>
> Regards,
> Jonathan Rockway
>
> --
> print just => another => perl => hacker => if $,=$"
>
> _______________________________________________
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



-- 
Regards,
Martin
([EMAIL PROTECTED])
IT: http://methodsupport.com Personal: http://thereisnoend.org
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to