check template cache before retrieving templates via http
udpate generated code