You are here: Re: [SMARTY] Caching timeout? problem « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] Caching timeout? problem

Posted by Boots on 09/30/93 11:13

Hi.

Perhaps you have PHP's ini setting for max_execution_time = 300 (eg: 5
minutes?)

xo boots

--- niles@atheos.net wrote:
> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация