Given that you're not using any database, as far as I know it'll
download the latest METAR every time.
HUGE impact on page generation time (on the order of a second or two,
most likely).
Even using the database (MySQL), I wasn't happy with the performance
(though most likely that was MySQL blocking issues with the millions of
other users at my ISP), so I wrote a small scripthack to cache the HTML
I produced.
I've since stumbled across the PEAR CacheLite module, and will (one day)
re-code using that. (http://pear.php.net/package-info.php?pacid=99)
Check it out :-)
http://home.swiftdsl.com.au/~Phil.Pierotti/
If you read the page generation times at the bottom, it's not insanely
fast. Then again my ISP doesn't use any PHP OpCode cache technology, so
every page (half-a-dozen scripts each, mostly) is reloaded from the
filesystem+parsed_for_includes+compiled *for every page-view*. Given
that *and* the 4 MySQL queries on every page (in the traffic summary
box) I'm not terribly unhappy so far.
Enjoy,
Phil P
aguevara wrote:
> I have downloaded php weather and have started using it, I am not using
> the DB (I am not concerned about caching the information quite yet). My
> question is, does the weather data get updated every time I load my web
> page. If not, how do I make/force that to happen ?
>
>
>
> Very complete app, I really like it !. I am using it to display my
> city’s weather in Maturin, Venezuela on my main page while also allowing
> visitors to go to another page to select and look at their country’s,
> city’s weather.
>
>
>
> Please advise.
>
>
>
> Have a great day,
> *Angelo A. Guevara*
>
> an...@ca... <mailto:an...@ca...ev...@ed...>
>
>
>
|