AddCacheFromFile method