|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
GeXus Smarty Rookie
Joined: 16 Aug 2006 Posts: 28
|
Posted: Sun Mar 25, 2007 9:07 pm Post subject: Cacheing not working with dynamic content |
|
|
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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
Back to top |
|
GeXus Smarty Rookie
Joined: 16 Aug 2006 Posts: 28
|
Posted: Sun Mar 25, 2007 9:18 pm Post subject: |
|
|
Thanks
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 |
|
toma Smarty Regular
Joined: 25 Apr 2003 Posts: 62
|
Posted: Mon Mar 26, 2007 2:07 am Post subject: |
|
|
I finally gave up on inject or whatever that function is. Check db.etree's common header for a fine workaround. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Mar 26, 2007 3:19 am Post subject: |
|
|
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 |
|
|
|
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
|