mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-05-06 05:13:42 +12:00
Fix remnants of uBO code in cache storage manager
Related feedback: - https://github.com/uBlockOrigin/uMatrix-issues/issues/227#issuecomment-590543891
This commit is contained in:
parent
a1ec20423c
commit
41133dffd2
|
@ -57,6 +57,8 @@ const rawSettingsDefault = {
|
|||
assetFetchBypassBrowserCache: false,
|
||||
assetFetchTimeout: 30,
|
||||
autoUpdateAssetFetchPeriod: 120,
|
||||
cacheStorageAPI: 'unset',
|
||||
cacheStorageCompression: true,
|
||||
cnameIgnoreList: 'unset',
|
||||
cnameIgnore1stParty: true,
|
||||
cnameIgnoreExceptions: true,
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
disconnect();
|
||||
},
|
||||
Math.max(
|
||||
µMatrix.hiddenSettings.autoUpdateAssetFetchPeriod * 2 * 1000,
|
||||
µMatrix.rawSettings.autoUpdateAssetFetchPeriod * 2 * 1000,
|
||||
180000
|
||||
)
|
||||
);
|
||||
|
@ -296,7 +296,7 @@
|
|||
const promises = [ getDb() ];
|
||||
const entries = [];
|
||||
const dontCompress =
|
||||
µMatrix.hiddenSettings.cacheStorageCompression !== true;
|
||||
µMatrix.rawSettings.cacheStorageCompression !== true;
|
||||
const handleEncodingResult = result => {
|
||||
entries.push({ key: result.key, value: result.data });
|
||||
};
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
]);
|
||||
log.info(`User settings ready ${Date.now()-vAPI.T0} ms after launch`);
|
||||
|
||||
const cacheBackend = await µm.cacheStorage.select(
|
||||
µm.rawSettings.cacheStorageAPI
|
||||
);
|
||||
log.info(`Backend storage for cache will be ${cacheBackend}`);
|
||||
|
||||
const shouldWASM =
|
||||
vAPI.canWASM === true &&
|
||||
µm.rawSettings.disableWebAssembly !== true;
|
||||
|
|
Loading…
Reference in a new issue