mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 17:29:42 +01:00
Store the correct lifetime for cache data.
This commit is contained in:
parent
4b6eadd956
commit
613d40a605
@ -108,7 +108,7 @@ void Cache::putData ( const QString& identifier, qint64 maxAge, const QString& k
|
||||
const QString cacheDir = m_cacheBaseDir + identifier;
|
||||
addClient ( identifier );
|
||||
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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user