disabled unnecessary caching

This commit is contained in:
antelle 2020-05-12 23:10:26 +02:00
parent cac31d3350
commit 20623e4c42
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
1 changed files with 5 additions and 0 deletions

View File

@ -485,6 +485,11 @@ function setEnv() {
// https://github.com/electron/electron/issues/9046
process.env.XDG_CURRENT_DESKTOP = 'Unity';
}
// disable all caching, since we're not using old profile data anyway
app.commandLine.appendSwitch('disable-http-cache');
app.commandLine.appendSwitch('disable-gpu-shader-disk-cache');
perfTimestamps?.push({ name: 'setting env', ts: process.hrtime() });
}