Topic: cache system for Punbb? :-)

great extern.php :-)

but  it connect mysql everytime, can extern.php write a html file to somethere, and like cache system ?

maybe ..
when somebody post or reply topic, extern.php made a html file  ...

I really think it's reduce the CPU Usage% and  faster then now :-)

any ideas ?

Re: cache system for Punbb? :-)

look at the news plugin?

Re: cache system for Punbb? :-)

Connorhd wrote:

look at the news plugin?

but news plunin need [click]

and I want auto :-)

just like I say,

somebody post or reply topic, extern.php made a html file [auto..]

:-)

really thanks.

Re: cache system for Punbb? :-)

that would probably create more load than save since it would need to cache it on every post

Re: cache system for Punbb? :-)

Assuming you're able to run PHP via the command line, just call extern.php from cron every hour and save the output as a static HTML file. This technique is commonly used to reduce CPU load for RSS news feeds.

Re: cache system for Punbb? :-)

Justin wrote:

Assuming you're able to run PHP via the command line, just call extern.php from cron every hour and save the output as a static HTML file. This technique is commonly used to reduce CPU load for RSS news feeds.

:-)

because i use web hosting service, so how can I set cron job do to this ?
and what's the static HTML file template ?

I try to write myself, but not really work.

Re: cache system for Punbb? :-)

I'm sorry -- my suggestion assumes that you have access to a crontab. Many hosts do not provide this functionality to their users, unfortunately.

8 (edited by snapsolutions 2005-03-01 04:40)

Re: cache system for Punbb? :-)

*BSD's and most Linux systems have user crontab, so no need for root/su access to run a cron.  "crontab -e" should do it.