We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b06b43 commit 0850ddbCopy full SHA for 0850ddb
src/cache.js
@@ -41,7 +41,10 @@ export const createCachingMethods = ({ collection, cache }) => {
41
findManyByIds: (ids, { ttl } = {}) => {
42
return Promise.all(ids.map(id => methods.findOneById(id, { ttl })))
43
},
44
- deleteFromCacheById: id => cache.delete(cachePrefix + id)
+ deleteFromCacheById: async id => {
45
+ loader.clear(id)
46
+ await cache.delete(cachePrefix + id)
47
+ }
48
}
49
50
return methods
0 commit comments