use correct cache when templates change