Added debug option, to disable cache on templates