title: Disabling caching on the PHP Smarty templating engine?
body: <p>For some reason I can't get Smarty to stop caching templates, which is really annoying when I'm making changes to templates during development. Can someone tell me where I'm going wrong in disabling all caching?:</p>
  
  <pre><code>$smarty                 =   new Smarty();
  $smarty-&gt;template_dir   =   SMARTY_PATH."/templates";
  $smarty-&gt;compile_dir    =   SMARTY_PATH."/templates_c";
  $smarty-&gt;cache_dir      =   SMARTY_PATH."/cache";
  $smarty-&gt;config_dir     =   SMARTY_PATH."/configs";
  $smarty-&gt;cache_lifetime = 1;
  $smarty-&gt;caching = 0;
  </code></pre>