Solved

Cache screwed me up

Posted on 2000-02-24
1
186 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
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 50 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lambda for random numbers problem 7 112
FMX StringGrid1->Canvas->FillRect Problem 3 150
draw a Christmas tree by using a nested loop? 26 61
Android development question 2 34
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

786 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