Skip to content

Commit

Permalink
Add clear cache message processor
Browse files Browse the repository at this point in the history
  • Loading branch information
danipv committed Mar 15, 2021
1 parent 040866b commit 7275e8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ var lscache = {};
lscache.set = function (key, value, time) {};
lscache.get = function (key) {};
lscache.remove = function (key) {};
lscache.flush = function () {};

3 changes: 3 additions & 0 deletions src/vt-augment.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ class VTAugment {
case 'VTAUGMENT:CLOSE':
this.closeDrawer();
break;
case 'VTAUGMENT:CLEAR_CACHE':
lscache.flush();
break;
default:
}
}
Expand Down

0 comments on commit 7275e8f

Please sign in to comment.