@@ -2,7 +2,7 @@ import { Router } from 'express';
22
33import { prepareSummary } from './cmc.utils' ;
44
5- import { LONG_CACHE_TTL } from '~/config/constants' ;
5+ import { DEFAULT_CACHE_TTL } from '~/config/constants' ;
66import { networks } from '~/loader/networks' ;
77import { NetworkFeature } from '~/loader/networks/types' ;
88import { prepareTvlEndpoint , prepareTvlSummaryEndpoint } from '~/loader/tvl/prepare-tvl-endpoint-data' ;
@@ -16,7 +16,7 @@ const router = Router();
1616router . get (
1717 '/summary' ,
1818 asyncRoute ( async ( req , res ) =>
19- maybeCacheResponse ( res , 'legacy/cmc/summary' , async ( ) => prepareSummary ( ) , LONG_CACHE_TTL ) . then ( ( data ) =>
19+ maybeCacheResponse ( res , 'vf: legacy/cmc/summary' , async ( ) => prepareSummary ( ) , DEFAULT_CACHE_TTL ) . then ( ( data ) =>
2020 res . json ( toResponse ( data ) ) ,
2121 ) ,
2222 ) ,
@@ -28,9 +28,9 @@ router.get(
2828 asyncRoute ( async ( req , res ) =>
2929 maybeCacheResponse (
3030 res ,
31- `v1 :legacy/cmc/tvl/${ req . app . locals . network . name } ` ,
31+ `vf :legacy/cmc/tvl/${ req . app . locals . network . name } ` ,
3232 async ( ) => prepareTvlEndpoint ( req . app . locals . network ) ,
33- LONG_CACHE_TTL ,
33+ DEFAULT_CACHE_TTL ,
3434 ) . then ( ( data ) => res . json ( toResponse ( data ) ) ) ,
3535 ) ,
3636) ;
@@ -40,9 +40,9 @@ router.get(
4040 asyncRoute ( async ( req , res ) =>
4141 maybeCacheResponse (
4242 res ,
43- 'legacy/cmc/tvl/summary' ,
43+ 'vf: legacy/cmc/tvl/summary' ,
4444 async ( ) => prepareTvlSummaryEndpoint ( networks . listChains ( ) ) ,
45- LONG_CACHE_TTL ,
45+ DEFAULT_CACHE_TTL ,
4646 ) . then ( ( data ) => res . json ( toResponse ( data ) ) ) ,
4747 ) ,
4848) ;
0 commit comments