#602: no need to rename compiled lists, they will be invalidated anyways

This commit is contained in:
gorhill 2015-08-18 14:49:46 -04:00
parent efccaf1416
commit ff33410c4a
1 changed files with 3 additions and 4 deletions

View File

@ -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);