update clear templates_c and clear cache files