Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cache screwed me up

Posted on 2000-02-24
1
Medium Priority
?
191 Views
Last Modified: 2010-04-02
My co-worker wrote a C++ function that uses the CInternetfile class to get a file via FTP from our server to a local directory, say C:\XXX.  However, we found out, after installing IE5, the file is cached in the Temporary Internet Files Directory.  Therefore, sometimes when I open the file from C:\XXX, the content is the same even if the content on the server has changed.  It obviously got the file from the cache.  
I tired to delete the file from the cahce, but windows does not allow me to do so sometimes.  From Visual Foxpro, I can't delete the file from the cache too.  I believe that it is controlled by Windows.  so I guess deleting the file is not a possible way...

How can I force it to download from the server, not the cache?

0
Comment
Question by:lippo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 150 total points
ID: 2556850
1. There is an option which controls the behavior.

Control Panel/Internet/General/Temporary Internet files/Settings/Check for newer versions of stored pages

2. Use the Persistent URL Cache Functions to delete the cached files, such as DeleteUrlCacheEntry.

http://msdn.microsoft.com/workshop/c-frame.htm?951459852650#/workshop/networking/wininet/overview/cache.asp
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question