move to the caching template loader