Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

some templates randomly not displaying

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
luoifong
Smarty Rookie


Joined: 03 Nov 2003
Posts: 13
Location: Manitou Springs, Colorado

PostPosted: Fri Jul 23, 2004 7:38 pm    Post subject: some templates randomly not displaying Reply with quote

our site, http://www.summit.org/index.php is built on Smarty. we are having a weird problem where some pages are not displaying templates, some are...example. home page displays...but if you click on the "Curriculum" or "Resources" links at the top, it just goes to a blank page...nothing in the .tpl files is being displayed...this is also true at https://www.summit.org/donate/monthly_gift.php. Does anyone know why this would happen and how we can fix it?

Thanks!
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
luoifong
Smarty Rookie


Joined: 03 Nov 2003
Posts: 13
Location: Manitou Springs, Colorado

PostPosted: Fri Jul 23, 2004 8:43 pm    Post subject: not quite random Reply with quote

okay, it's not quite random...I set force_compile to true and then any page I went to was blank...I reset force_compile to false. Then any page I had visited while force_compile was true was still blank...any pages that hadn't been visited still displayed.

Is there a way I need to reset things so all the pages could display?

Thanks!
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
luoifong
Smarty Rookie


Joined: 03 Nov 2003
Posts: 13
Location: Manitou Springs, Colorado

PostPosted: Fri Jul 23, 2004 9:48 pm    Post subject: Reply with quote

okay, figured out that I was way over quota on my web hosting account...that was causing the problems.

However, I was over quota because the template_c and cache folders added up to over 2.5 GB! Is this typical? How can I prevent these folders from getting so bloated?

Thanks!
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Fri Jul 23, 2004 9:57 pm    Post subject: Reply with quote

You could use the clear_compiled_tpl() API. or run a cron that removes templates_c files older than N days (or not accessed since N days)
Back to top
View user's profile Send private message Visit poster's website
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sat Jul 24, 2004 2:58 am    Post subject: Reply with quote

luoifong wrote:
How can I prevent these folders from getting so bloated?


use a finite number of templates and a finite number of compile_ids, then you'll get a maximum number of distinct templates.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP