Skip to content

Commit

Permalink
web: Disable cache until I find a better solution
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Nov 19, 2024
1 parent 32cf042 commit c05e2eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/web/src/composables/useDmSocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ const defaultExport = (options: {
CollectionServices.namespaceEndpoint,
{
session,
cache: {
storage: cacheStorage,
disableCache: (eventName) => eventName.indexOf("get") !== 0,
ttl: 1000, // 1 second only, because we want to always get the latest data but still cache in case of offline
},
// cache: {
// storage: cacheStorage,
// disableCache: (eventName) => eventName.indexOf("get") !== 0,
// ttl: 1000, // 1 second only, because we want to always get the latest data but still cache in case of offline
// },
},
),
coverId: socket.addNamespace<CoverIdServices>(
Expand Down

0 comments on commit c05e2eb

Please sign in to comment.