Smartyでcompile_dirに作成されるキャッシュを削除する
PHPでSmartyを使っていてWindows環境では問題なかったんですが、
Linux環境にしたらテンプレートを修正したものがcompile_dirに
反映されなくなってしまい、いちいち削除してましたが、
とてもやってられないので開発中だけでも毎回compile_dirに
コンパイルしなおすようにしました。
サンプルプログラム
//Smarty初期化
$o_smarty = new Smarty();
$o_smarty->template_dir = './templates/keitai/';
$o_smarty->compile_dir = './templates_c/keitai/';
//debug用 compile_tplの中をクリアする
$o_smarty->clear_compiled_tpl();