Re: [SMARTY] function for compiling template needed
| From: | Jason Sweat | Date: | Thu, 11 Apr 2002 17:04:20 +0000 |
| Subject: | Re: [SMARTY] function for compiling template needed | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3635@lists.php.net to get a copy of this message | ||
I have a different variation...
my queries are extreamly expensive (30+ seconds) and
then are used to generate a cached image of a chart
(using the cache in JpGraph
http://www.aditus.nu/jpgraph, not the smarty cache).
I want my Smarty template to cache the image src (and
possibly the image map if generated). I _never_ want
my users to hit a non-compiled/non-cached page.
My solution was to cron a shell script using curl
(http://curl.haxx.se/) to fetch the page a regular
intervals (less than half of the cache duration). I
set up a particular $_GET variable to tell the script
to flush the cache and regenerate the graphs/pages.
Jason
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/