Allow disabling of OS cache. This will prevent RAM increases on Windows when seeding many files. Closes #1699.

This commit is contained in:
sledgehammer999
2014-08-07 22:30:54 +03:00
parent 7763a6d2d5
commit 80d6a5a73e
4 changed files with 20 additions and 2 deletions

View File

@@ -1139,6 +1139,14 @@ void Preferences::setDiskCacheTTL(uint ttl) {
setValue("Preferences/Downloads/DiskWriteCacheTTL", ttl);
}
bool Preferences::osCache() const {
return value("Preferences/Advanced/osCache", true).toBool();
}
void Preferences::setOsCache(bool enable) {
setValue("Preferences/Advanced/osCache", enable);
}
uint Preferences::outgoingPortsMin() const {
return value("Preferences/Advanced/OutgoingPortsMin", 0).toUInt();
}