• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Turn Off Smarty Caching: How? Good or Bad? Partial Caching?

Per Google: "In general, HTML is not static, and shouldn't be considered cacheable." (http://code.google.com/speed/page-speed/...ching.html)

Per Smarty: "....if you are displaying the front page of your website that does not change its content very often, it might work well to cache this page for an hour or more. On the other hand, if you are displaying a page with a timetable containing new information by the minute, it would not make sense to cache this page." (http://www.smarty.net/manual/en/caching.php)

Since most of my site is dynamic, I decided to turn off Smarty caching. When I looked at Smarty.class.php, line 160, I saw this:

var $caching         =  0;

I'm sure that there is Smarty caching taking place on my site.

1. How do I turn off Smarty caching?
2. Am I right to want to turn off Smarty caching?
3. Can I do partial caching with Smarty (e.g. my footer TPL is probably not going to change often)


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.