Clear cache after setting variables