|
Hi folks,
I started using the FTPGet() function and for the first few days it worked fine, then on the 5th day some bug appeared. Here's how I'm using the function:
Every day I download an XLS file from a website. Every day the file name is the same, but the file is being updated. Once downloaded, I open the file, read a value inside and if it corresponds with today's date I send the file via Blat SMTP to some people. I have to send the file after 16:45, so at this point the script starts downloading the file from the web address every 2 minutes. In 99% of the cases by this time file is already updated and file is being sent. Sometimes though, I see the file downloaded, but when I open it - still shows the previous date inside, while when I open it from another PC (downloaded from the website) it is updated. The script though keeps on downloading the file every two minutes and it is never updated, while at the very same time I see it updated on the site. So, conclusion is that it is getting cached and I implemented the ClearIE() UDF into the script, but this behaviour is very strange - 4 days it works perfrectly (without clearing the cache) while on the 5th day (not always the fifth day, but somewhere in this period) the cache is not getting updated.
Any thoughts why this might be happening ? ClearIE() works well, but I'd prefer not using it so often.
Thanks in advance !
Edited by green78 (2007-07-27 11:25 PM)
|