Forum Moderators: coopster

Message Too Old, No Replies

Are there PHP libraries to cache webpages?

each time data are changed, you cache the webpage

         

guarriman

4:57 pm on Feb 1, 2007 (gmt 0)

10+ Year Member



Hi.

I'm using PHP 4 with Apache 2, and would like to share experiencies with PHP libraries to cache webpages.

I've got some webpages dinamically generated with mySQL data. These data changes 1-2 times per day, and it's not worth reading DataBase each time one user accesses my webpage, since it's "nearly" static.

So, I'm trying to find a PHP library which caches these webpage each time data are changed.

Is there anyone? Thank you very much.

mcibor

5:07 pm on Feb 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thread on this:
[webmasterworld.com...]

I myself use smarty engine that has caching built in
Regards
Michal

guarriman

11:47 am on Feb 2, 2007 (gmt 0)

10+ Year Member



Hi mcibor. Thank you very much for your reply.

I also use Smarty, but server's still reading data from mySQL, and I want not to do it (for instance, by using the method proposed in the URL you mention).

I receive +100,000 visits per day and data change 1-2 times per day. It's no worth reading these data everytime user accesses the webpage.

adb64

12:01 pm on Feb 2, 2007 (gmt 0)

10+ Year Member



Another thing you could do is set a crontab job to run at specified times each day and that crontab job will generate a static html page which will be served to your visitors.