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

Search found 20 matches
Smarty Forum Index
Author Message
  Topic: when does Smarty cache rebuild a page?
fortuity

Replies: 12
Views: 27654

PostForum: Smarty Development   Posted: Sat Oct 16, 2004 1:45 am   Subject: when does Smarty cache rebuild a page?
maybe upgrade to 2.6.6 and see if the problem persists

I tried an upgrade to 2.6.6 and had to backout in a hurry, because I'm getting an error trying to use an include file that I use on dozens of ...
  Topic: when does Smarty cache rebuild a page?
fortuity

Replies: 12
Views: 27654

PostForum: Smarty Development   Posted: Sat Oct 16, 2004 1:26 am   Subject: when does Smarty cache rebuild a page?
I've just added
$smarty->compile_check = true;
and will see what happens at 5pm after the templates are touched.

It's 5pm and everything worked perfectly. Thanks for the tip about using comp ...
  Topic: when does Smarty cache rebuild a page?
fortuity

Replies: 12
Views: 27654

PostForum: Smarty Development   Posted: Fri Oct 15, 2004 8:29 pm   Subject: when does Smarty cache rebuild a page?
what version of smarty do you use? more recent ones prevent a triggering by a prior file_exist-check.

I'm using Smarty 2.6.0.
  Topic: when does Smarty cache rebuild a page?
fortuity

Replies: 12
Views: 27654

PostForum: Smarty Development   Posted: Fri Oct 15, 2004 8:00 pm   Subject: when does Smarty cache rebuild a page?
I don't see errors when I remove cache files, do you have NFS in the mix, or some sort of file caching?.

Regarding the error message, there's no NFS here, just serving files from the file system (L ...
  Topic: when does Smarty cache rebuild a page?
fortuity

Replies: 12
Views: 27654

PostForum: Smarty Development   Posted: Fri Oct 15, 2004 7:55 pm   Subject: when does Smarty cache rebuild a page?
If compile_check is on, when you touch your template files they should get recompiled even with caching enabled.

Thank you! That's the tip I needed. I've just added
$smarty->compile_check = tr ...
  Topic: when does Smarty cache rebuild a page?
fortuity

Replies: 12
Views: 27654

PostForum: Smarty Development   Posted: Fri Oct 15, 2004 5:00 pm   Subject: when does Smarty cache rebuild a page?
to force a rebuild just remove the cachefile.

Yes, but when I do a remove of the cache file I get an error message displaying on the first request for the page. It's not something I want visitors t ...
  Topic: when does Smarty cache rebuild a page?
fortuity

Replies: 12
Views: 27654

PostForum: Smarty Development   Posted: Fri Oct 15, 2004 12:36 am   Subject: when does Smarty cache rebuild a page?
I'd like to force Smarty to rebuild cached pages at scheduled times (instead of waiting for the ttl to expire). I tried using a cron job to touch the cache files and set the last-modified time older ...
  Topic: What is the best PHP IDE?
fortuity

Replies: 10
Views: 38164

PostForum: Smarty Development   Posted: Fri Oct 15, 2004 12:26 am   Subject: Re: What is the best PHP IDE?

Im using Eclipse

@see http://www.eclipse.org/

with the phpEclupse extension

@see http://www.phpeclipse.de/tiki-view_articles.php

I also like the Eclipse and phpEclipse combination. Look ...
  Topic: forcing cache to expire at 5pm
fortuity

Replies: 8
Views: 11838

PostForum: General   Posted: Tue Oct 12, 2004 1:54 am   Subject: forcing cache to expire at 5pm
How does Smarty determine whether a cache has exceeded the ttl?

It's not the last-modified time of the cache file, I think. So how does Smarty know?
  Topic: forcing cache to expire at 5pm
fortuity

Replies: 8
Views: 11838

PostForum: General   Posted: Tue Oct 12, 2004 1:52 am   Subject: forcing cache to expire at 5pm
>Exception message: fopen(/var/php/smarty/www.mysite.com/cache//%%934^%%934377282^index.tpl.html): failed to open stream: No such file or directory.

Just wanted to detail the error message with ...
  Topic: forcing cache to expire at 5pm
fortuity

Replies: 8
Views: 11838

PostForum: General   Posted: Tue Oct 12, 2004 1:45 am   Subject: forcing cache to expire at 5pm
...try clearing your accelerator cache as well?

Sorry, I'm not understanding that, I didn't think that the accelerator cache was involved here.
  Topic: forcing cache to expire at 5pm
fortuity

Replies: 8
Views: 11838

PostForum: General   Posted: Tue Oct 12, 2004 1:40 am   Subject: forcing cache to expire at 5pm
use $smarty->clear_cache to flush the appropriate cache everyday at 5pm

Seems like the only way I could do that would be to use a cronjob to call the page at 5pm, and have conditional code on th ...
  Topic: forcing cache to expire at 5pm
fortuity

Replies: 8
Views: 11838

PostForum: General   Posted: Tue Oct 12, 2004 1:30 am   Subject: forcing cache to expire at 5pm
> clear the cache at 5 pm.

Tried that, with a cron job that rm's the files. Maybe I'm doing something wrong. The first time the page is accessed after the cache is cleared, I get error messages ...
  Topic: forcing cache to expire at 5pm
fortuity

Replies: 8
Views: 11838

PostForum: General   Posted: Tue Oct 12, 2004 1:03 am   Subject: forcing cache to expire at 5pm
I love the Smarty caching functionality. I've got a site that displays a daily quotation. Obviously, the page only needs to be refreshed every 24 hours. But I don't want it refreshed 24 hours after th ...
  Topic: template collision for pages with same name
fortuity

Replies: 8
Views: 16523

PostForum: Installation and Setup   Posted: Mon Apr 05, 2004 6:08 am   Subject: template collision for pages with same name
Thanks for the help and the thoughtful comments. I'm happy Smarty imposes no inherent limitations on this approach.
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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