solve template cache issue