Hi,

Ed Lazor wrote:

Is anyone taking a dynamic PHP / MySQL site and storing or cacheing it
statically in order for pages to display more quickly when visitors access
the site?  If so, what solutions are you using to achieve this?

Thanks,

Ed

I'm using two-way or two-step caching - I'll try to describe it ;) conditions: - wrote special class for cache handling, updating - using smarty - using turck mmcache

1. step
        - as the data I'm passing to smarty are only array, I've decided to store
        this pre-generated array in a file*.
        - data are refreshed not periodically but only when changed or if they are 
missing*
        - in the scrip, where I'm displaying those data, the file is only included
        *this is done by my caching class

2. step
        - as I'm using turck mmcache, data file is precompiled into bytecode and held 
in
        shared memory.

I've got HUGE improvement in speed and from-time-to-time server loads disappeared.
From 0.1s per script I've got to approx 0.005s per script, ofcourse it depends on some
other conditions, but generally improvement was huge.


-- Mirek Novak jabberID: [EMAIL PROTECTED] ICQ: 119499448

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to