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
Solved

Cache screwed me up

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to split this in C++ 4 106
Arduino EDI - Programming language 3 103
What is sub-make ? 2 71
How to convert Structure to vector of byte and vice versa 5 24
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.

840 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