mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
#602: no need to rename compiled lists, they will be invalidated anyways
This commit is contained in:
parent
efccaf1416
commit
ff33410c4a
1 changed files with 3 additions and 4 deletions
|
@ -959,14 +959,13 @@
|
|||
continue;
|
||||
}
|
||||
newListKey = µb.oldListToNewListMap[oldListKey];
|
||||
// Remove cached and compiled list
|
||||
if ( newListKey === '' ) {
|
||||
continue;
|
||||
}
|
||||
// Rename cached and compiled list (important: compiled list first)
|
||||
µb.assets.rename(µb.getCompiledFilterListPath(oldListKey),
|
||||
µb.getCompiledFilterListPath(newListKey));
|
||||
// Rename cached asset to preserve content -- so it does not
|
||||
// need to be fetched from remote server.
|
||||
µb.assets.rename(oldListKey, newListKey);
|
||||
µb.assets.purge(µb.getCompiledFilterListPath(oldListKey));
|
||||
}
|
||||
µb.patchFilterLists(stockLists);
|
||||
|
||||
|
|
Loading…
Reference in a new issue