From ff33410c4ab20bae5189ac454e3fdacac68150ee Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 18 Aug 2015 14:49:46 -0400 Subject: [PATCH] #602: no need to rename compiled lists, they will be invalidated anyways --- src/js/storage.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/js/storage.js b/src/js/storage.js index 3339b1875..c060849fa 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -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);