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

Caching

 
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 -> General
View previous topic :: View next topic  
Author Message
torok
Smarty n00b


Joined: 18 Sep 2003
Posts: 2

PostPosted: Thu Sep 18, 2003 4:15 pm    Post subject: Caching Reply with quote

What I would really like to do is check if there is an up-to-date cache file at the TOP of my script. If there is, print it and stop there. Otherwise go through and run all the sql queries and take a bunch of time. Is there a good way for me to not run all my code for no reason every time I print a cached page? Thanks.
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu Sep 18, 2003 4:17 pm    Post subject: Reply with quote

The information you want is in the manual -- look up the is_cached function Smile
Back to top
View user's profile Send private message
torok
Smarty n00b


Joined: 18 Sep 2003
Posts: 2

PostPosted: Thu Sep 18, 2003 4:55 pm    Post subject: Reply with quote

boots wrote:
The information you want is in the manual -- look up the is_cached function Smile


Ooops. Thanks, man. Very Happy
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 -> General 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