File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11NEXT_PRIVATE_DEBUG_CACHE = " 1"
22REDIS_URL = " redis://localhost:6379"
3- REDIS_SINGLE_CONNECTION = true
3+ REDIS_SINGLE_CONNECTION = true
4+ # INITIAL_CACHE_SET_ONLY_IF_NOT_EXISTS=true
Original file line number Diff line number Diff line change 11export const register = async ( ) => {
22 if ( process . env . NEXT_RUNTIME === "nodejs" ) {
3- const { registerInitialCache } = await import (
4- "@fortedigital/nextjs-cache-handler/instrumentation"
5- ) ;
3+ const { registerInitialCache } =
4+ await import ( "@fortedigital/nextjs-cache-handler/instrumentation" ) ;
65 const CacheHandler = ( await import ( "../cache-handler.mjs" ) ) . default ;
7- await registerInitialCache ( CacheHandler ) ;
6+ await registerInitialCache ( CacheHandler , {
7+ setOnlyIfNotExists :
8+ process . env . INITIAL_CACHE_SET_ONLY_IF_NOT_EXISTS === "true" ,
9+ } ) ;
810 }
911} ;
You can’t perform that action at this time.
0 commit comments