I would like to make sure that getTemplateVars () only returns the templatevars from the last fetch(). Now if a request results in two fetches getTemplateVars also returns the global_tpl_vars created in the previous template.
To prevent that I would probably need to clear global_tpl_vars or initialize smarty between two fetches or something similar, but I don't know how.