Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [SMARTY] Caching timeout? problem
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

Report this thread to moderator Post Follow-up to this message
Old Post
Boots
04-15-05 01:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:19 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.