Fix production caching bug