[phpa] Re: Cached 'static' PHP vs HTML
- From: egill runar erlendsson <egill@xxxxxxxxxxxxx>
- To: phpa@xxxxxxxxxxxxx
- Date: Thu, 18 Apr 2002 20:35:06 +0000
My suggestion is K.I.S.S. (Keep it simple stupid)
I'm creating static versions of the most requested PHP documents on one of the
websites I'm responsible for (around 800K - 1 million hits pr. day on the PHP
box that serves only PHP and static HTML).
What I do is create simple shell scripts that do nothing but run the PHP
binary, and direct the output into an HTML document. Then I set up tasks via
CRON, that repeat the process every 1 - 15 minutes. It saves up a h*ll of a
lot of CPU cycles, db queries and reduces the workload even more dramatically
than just by running PHPA.
By running the CRON job every minute, I make sure that I've always got
a "fresh" copy of the document (I'm speeding up the index page of a
messageboard 200 times [expensive joins and queries in mysql]).
The combination of those "static" copies of the PHP documents, and PHPA has
reduced the workload of my webserver down to zero.
There isn't any one-stop-shop solution or a magic recipe to a fast website.
If you really want to tune your website, then you'll have to analyze each and
every document, and every component of your website.
Just my $0.02
Kind regards,
Egill R.
------------------------------------------------------------------------
www.php-accelerator.co.uk Home of the free PHP Accelerator
To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe
- References:
- [phpa] Re: Cached 'static' PHP vs HTML
- From: xing li
Other related posts:
- » [phpa] Cached "static" PHP vs HTML
- » [phpa] Re: Cached 'static' PHP vs HTML
- » [phpa] Re: Cached 'static' PHP vs HTML
- » [phpa] Re: Cached 'static' PHP vs HTML
- » [phpa] Re: Cached "static" PHP vs HTML
- » [phpa] Re: Cached "static" PHP vs HTML
- » [phpa] Re: Cached "static" PHP vs HTML
- » [phpa] Re: Cached "static" PHP vs HTML
- » [phpa] Re: Cached "static" PHP vs HTML
- » [phpa] Re: Cached 'static' PHP vs HTML
- » [phpa] Re: Cached 'static' PHP vs HTML
- » [phpa] Re: Cached 'static' PHP vs HTML
- » [phpa] Re: Cached 'static' PHP vs HTML
- » [phpa] Re: Cached 'static' PHP vs HTML
- [phpa] Re: Cached 'static' PHP vs HTML
- From: xing li