use cached template loader cache when debug is false