Caching timeout? problem
| From: | niles at atheos dot net | Date: | Thu, 14 Apr 2005 19:32:57 +0000 |
| Subject: | Caching timeout? problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12502@lists.php.net to get a copy of this message | ||
Hello Smarty Users,
I'm a recent convert to the world of Smarty, and I'm in the process of converting my company website to Smarty. I haven't ran into a problem I couldn't resolve with either google or the documentation until now. One of the reasons I'm moving to Smarty is to take advantage of the caching features. For my current site, I use a cron script combined with php to run fairly extensive stats and dump the html output into a mysql blob table. When the user goes to see their stats, php displays the html content in the database. Based on the users details (sales & downline) the php process can take close to 10 minutes.
I've already rewritten this in Smarty, and got the process time down to at most 4 minutes. Instead of witting out html into a database, I'm using php & curl to access the site (logged in as each user, one at a time) and allowing Smarty to create the cache file. This works great for all but the longest queries, where it just dies without any error. I get nothing!
For example, running my php/curl script for the longest process takes about 4 minutes when I have caching disabled, and it runs great.
root@asterisk:/home/bittersw/public_html/includes# ./populate_cache.php
13:33:38
sucess!
13:37:22
when I enable caching, the same script runs for 5 minutes and then gives no output.
root@asterisk:/home/bittersw/public_html/includes# ./populate_cache.php
13:38:19
13:43:20
5 minutes give or take a couple of seconds every time. This tells me something is timing out, but I can't
find a setting anywhere in Smarty to match this.
I'm guessing the longer processing time is due to some additional overhead from enabling caching. ??
Thanks for any assistance
Niles