In the bin/deploy.php script, add an option --clearcache or -cc to clear the tpl_cache directory when doing a deploy.