Hi all.
I wonder how to cache some blocks on my page that takes data from other pages and sometimes slowely...
Saying more precisely:
I have a block that contains this php:
readfile ('http://cw.money.pl/u_mapki_pogoda_duza.html', true)

This http://cw.money.pl... is some internet page where I get weather to show on my drupal site.

I have D6.14 and like to have cached this weather map as taking it from that other website sometimes is very slow.
Best If this could be done every hour with cron or something but I'm not a specialist about caching and cron, and to say quite newbie in drupal, but already have site here: newstelegraf.pl

Comments

mikeytown2’s picture

Look into this
http://drupal.org/project/blockcache_alter

Do it via cron requires you to create a module & cron hook. Save the html on cron and read the html back on viewing; you can use variable_set & variable_get for storage.

konrad1811’s picture

Probabbly Boost does what I need... Finaly I think it works... I guess the words "Permanently moved" means that it was cached :)
Works quite fast on my computer... Hope this will be still about second after moving to web server...