Implement clearing caches in settings
This commit is contained in:
parent
67724ad2a4
commit
e21bac3d70
5 changed files with 50 additions and 4 deletions
|
|
@ -147,4 +147,10 @@ export function unregisterPushNotifications (token) {
|
|||
}
|
||||
}
|
||||
|
||||
export const shouldCache = process.env.NODE_ENV === 'production'
|
||||
export const cacheKey = 'pleroma-fe'
|
||||
export const emojiCacheKey = 'pleroma-fe-emoji'
|
||||
|
||||
export const clearCache = (key) => caches.delete(key)
|
||||
|
||||
export { getOrCreateServiceWorker }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue