Smartyで開発中にキャッシュ問題を回避する

template_c を毎回削除は手間がかかるので
毎回強制的にコンパイルさせます。

方法は Smarty.class.php を編集します。
場所は環境によって異なりますが今回は下記のディレクトリにありました。
/app/framework/lib/Smarty/libs/Smarty.class.php
361行目付近
$force_compile = false;
true にすればOKです。

公式サイトに書いてあります。
https://www.smarty.net/docsv2/ja/variable.force.compile.tpl