cleans up template caching and removes caching from data criteria