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

Cacheing not working with dynamic content

 
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
GeXus
Smarty Rookie


Joined: 16 Aug 2006
Posts: 28

PostPosted: Sun Mar 25, 2007 9:07 pm    Post subject: Cacheing not working with dynamic content Reply with quote

I'm having problems using cacheing... I a page called site.php, that page accepts query paramaters that basically change each page, When I have cacheing enabled, every page is that of the first page seen.

Is there anyway to fix that?
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Sun Mar 25, 2007 9:12 pm    Post subject: Reply with quote

It's in the fine manual
Back to top
View user's profile Send private message Send e-mail Visit poster's website
GeXus
Smarty Rookie


Joined: 16 Aug 2006
Posts: 28

PostPosted: Sun Mar 25, 2007 9:18 pm    Post subject: Reply with quote

Thanks Smile

I did notice that it does not seem to be faster, if all content is dynamic would that mean that chaching would be pointless?
Back to top
View user's profile Send private message
toma
Smarty Regular


Joined: 25 Apr 2003
Posts: 62

PostPosted: Mon Mar 26, 2007 2:07 am    Post subject: Reply with quote

I finally gave up on inject or whatever that function is. Check db.etree's common header for a fine workaround.
Back to top
View user's profile Send private message Visit poster's website
mohrt
Administrator


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

PostPosted: Mon Mar 26, 2007 3:19 am    Post subject: Reply with quote

Caching will only be useful if there is a high percentage of cache hits. If the page is always dynamic and cache hits are infrequent, then it is likely not worth using. Or, maybe most of the page is static and only small parts are dynamic. In that case, use {insert} tags or cache blocks to keep them dynamic.
Back to top
View user's profile Send private message 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 -> 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