mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 16:46:17 +00:00
Fixed: Correctly expire object if file is removed from cache.
--HG-- branch : develop
This commit is contained in:
parent
f80c8e7d81
commit
e0ab70ca82
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ namespace NLGUI
|
||||||
time(¤tTime);
|
time(¤tTime);
|
||||||
|
|
||||||
CHttpCacheObject cache = CHttpCache::getInstance()->lookup(download.dest);
|
CHttpCacheObject cache = CHttpCache::getInstance()->lookup(download.dest);
|
||||||
if (cache.Expires > currentTime)
|
if (CFile::fileExists(download.dest) && cache.Expires > currentTime)
|
||||||
{
|
{
|
||||||
#ifdef LOG_DL
|
#ifdef LOG_DL
|
||||||
nlwarning("Cache for (%s) is not expired (%s, expires:%d)", download.url.c_str(), download.dest.c_str(), cache.Expires - currentTime);
|
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