Skip to content

Commit 58132ea

Browse files
committed
DONTMERGE(graphql-api): dont use gene cache to allow demo
1 parent 404e90d commit 58132ea

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

graphql-api/src/queries/gene-queries.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { withCache } from '../cache'
1+
// import { withCache } from '../cache'
22

33
import { fetchAllSearchResults } from './helpers/elasticsearch-helpers'
44

@@ -31,11 +31,12 @@ const _fetchGeneById = async (esClient: any, geneId: any, referenceGenome: any)
3131
}
3232
}
3333

34-
export const fetchGeneById = withCache(
35-
_fetchGeneById,
36-
(_: any, geneId: any, referenceGenome: any) => `gene:${geneId}:${referenceGenome}`,
37-
{ expiration: 86400 }
38-
)
34+
// export const fetchGeneById = withCache(
35+
// _fetchGeneById,
36+
// (_: any, geneId: any, referenceGenome: any) => `gene:${geneId}:${referenceGenome}`,
37+
// { expiration: 86400 }
38+
// )
39+
export const fetchGeneById = _fetchGeneById
3940

4041
export const fetchGeneBySymbol = async (esClient: any, geneSymbol: any, referenceGenome: any) => {
4142
const response = await esClient.search({

0 commit comments

Comments
 (0)