template.compile now returns also true or false that can be used to check if template was cached.