Solved

Cache screwed me up

Posted on 2000-02-24
1
185 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now