mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-12 18:29:04 +00:00
Changed: Ignore cache status when local file has been deleted
--HG-- branch : develop
This commit is contained in:
parent
8300821d0e
commit
d6faf81c81
1 changed files with 5 additions and 2 deletions
|
@ -366,8 +366,11 @@ namespace NLGUI
|
|||
time_t currentTime;
|
||||
time(¤tTime);
|
||||
|
||||
CHttpCacheObject cache = CHttpCache::getInstance()->lookup(download.dest);
|
||||
if (CFile::fileExists(download.dest) && cache.Expires > currentTime)
|
||||
CHttpCacheObject cache;
|
||||
if (CFile::fileExists(download.dest))
|
||||
cache = CHttpCache::getInstance()->lookup(download.dest);
|
||||
|
||||
if (cache.Expires > currentTime)
|
||||
{
|
||||
#ifdef LOG_DL
|
||||
nlwarning("Cache for (%s) is not expired (%s, expires:%d)", download.url.c_str(), download.dest.c_str(), cache.Expires - currentTime);
|
||||
|
|
Loading…
Reference in a new issue