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

Force use of cache

 
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 -> Feature Requests
View previous topic :: View next topic  
Author Message
Pim
Smarty n00b


Joined: 13 Oct 2005
Posts: 2

PostPosted: Thu Oct 13, 2005 5:53 pm    Post subject: Force use of cache Reply with quote

Hello,

I'm looking for a way to force Smarty use existing cache, even if expired.
It could make a website browsable even if database is down.
It works great while cache_lifetime is now over, but there is no easy way to control cache lifetime, or when a template was cached, or so.

With something like this :
$smarty -> force_cache = true;

We could easily choose to use cache rather than compiling files (especially when we CANNOT compile, because database, for example, is down).

I'm trying to set it up for my site, but I don't understand exactly how function smarty_core_read_cache_file works.

Thanks
Back to top
View user's profile Send private message
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 -> Feature Requests 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