mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
Removing option to disable the OS disk cache because it has limited use and is unreliable in Windows.
This commit is contained in:
parent
f2c05131c3
commit
6894a4b640
3 changed files with 2 additions and 29 deletions
|
@ -405,9 +405,6 @@ void QBtSession::configureSession() {
|
|||
int cache_size = pref.diskCacheSize();
|
||||
sessionSettings.cache_size = cache_size ? cache_size * 64 : -1;
|
||||
qDebug() << "Using a disk cache size of" << pref.diskCacheSize() << "MiB";
|
||||
// Disabling the OS disk cache is intended to reduce memory usage (especially when checking files) but might be unreliable
|
||||
sessionSettings.disk_io_write_mode = pref.disableOSWriteCache() ? session_settings::disable_os_cache : session_settings::enable_os_cache;
|
||||
sessionSettings.disk_io_read_mode = pref.disableOSReadCache() ? session_settings::disable_os_cache : session_settings::enable_os_cache;
|
||||
#if LIBTORRENT_VERSION_MINOR > 15
|
||||
sessionSettings.anonymous_mode = pref.isAnonymousModeEnabled();
|
||||
if (sessionSettings.anonymous_mode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue