diff options
author | 2017-12-29 01:33:42 -0500 | |
---|---|---|
committer | 2017-12-29 01:33:46 -0500 | |
commit | 33c6e0af4112a927027a2533dea4bea3750e7865 (patch) | |
tree | fabd8a62049a187c70063e14d5171fa65dc1d159 /src/api | |
parent | Delete session partition with service (diff) | |
download | ferdium-app-33c6e0af4112a927027a2533dea4bea3750e7865.tar.gz ferdium-app-33c6e0af4112a927027a2533dea4bea3750e7865.tar.zst ferdium-app-33c6e0af4112a927027a2533dea4bea3750e7865.zip |
Add button to clear global cache and all services
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/server/LocalApi.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/server/LocalApi.js b/src/api/server/LocalApi.js index fec89f948..d2ce0c9de 100644 --- a/src/api/server/LocalApi.js +++ b/src/api/server/LocalApi.js | |||
@@ -41,4 +41,9 @@ export default class LocalApi { | |||
41 | const s = session.fromPartition(`persist:service-${serviceId}`); | 41 | const s = session.fromPartition(`persist:service-${serviceId}`); |
42 | await new Promise(resolve => s.clearCache(resolve)); | 42 | await new Promise(resolve => s.clearCache(resolve)); |
43 | } | 43 | } |
44 | |||
45 | async clearAppCache() { | ||
46 | const s = session.defaultSession; | ||
47 | await new Promise(resolve => s.clearCache(resolve)); | ||
48 | } | ||
44 | } | 49 | } |