mirror of https://github.com/gorhill/uBlock.git
#602: no need to rename compiled lists, they will be invalidated anyways
This commit is contained in:
parent
efccaf1416
commit
ff33410c4a
|
@ -959,14 +959,13 @@
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
newListKey = µb.oldListToNewListMap[oldListKey];
|
newListKey = µb.oldListToNewListMap[oldListKey];
|
||||||
// Remove cached and compiled list
|
|
||||||
if ( newListKey === '' ) {
|
if ( newListKey === '' ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Rename cached and compiled list (important: compiled list first)
|
// Rename cached asset to preserve content -- so it does not
|
||||||
µb.assets.rename(µb.getCompiledFilterListPath(oldListKey),
|
// need to be fetched from remote server.
|
||||||
µb.getCompiledFilterListPath(newListKey));
|
|
||||||
µb.assets.rename(oldListKey, newListKey);
|
µb.assets.rename(oldListKey, newListKey);
|
||||||
|
µb.assets.purge(µb.getCompiledFilterListPath(oldListKey));
|
||||||
}
|
}
|
||||||
µb.patchFilterLists(stockLists);
|
µb.patchFilterLists(stockLists);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue