Support caching, will only compile modified templates