mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Store the correct lifetime for cache data.
This commit is contained in:
@@ -108,7 +108,7 @@ void Cache::putData ( const QString& identifier, qint64 maxAge, const QString& k
|
|||||||
const QString cacheDir = m_cacheBaseDir + identifier;
|
const QString cacheDir = m_cacheBaseDir + identifier;
|
||||||
addClient ( identifier );
|
addClient ( identifier );
|
||||||
QSettings cached_settings ( cacheDir, QSettings::IniFormat );
|
QSettings cached_settings ( cacheDir, QSettings::IniFormat );
|
||||||
cached_settings.setValue ( key, QVariant::fromValue ( CacheData ( maxAge, value ) ) );
|
cached_settings.setValue ( key, QVariant::fromValue ( CacheData ( QDateTime::currentMSecsSinceEpoch() + maxAge, value ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Cache::addClient ( const QString& identifier )
|
void Cache::addClient ( const QString& identifier )
|
||||||
|
Reference in New Issue
Block a user