Skip to content

Commit

Permalink
chore: build bug
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Aug 10, 2023
1 parent cbdf0aa commit fb1f154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useRuntimeConfig, useStorage } from '#imports'
export async function useNitroCache<T>(e: H3Event, module: string, options: { key: string; cacheTtl: number; cache: boolean; headers: boolean; skipRestore?: boolean }) {
const { runtimeCacheStorage, version } = useRuntimeConfig()[module] as any as { version: string; runtimeCacheStorage: any }

const enabled = options.cache && runtimeCacheStorage && options.cacheTtl && options.cacheTtl > 0 &&
const enabled = options.cache && runtimeCacheStorage && options.cacheTtl && options.cacheTtl > 0
const baseCacheKey = runtimeCacheStorage === 'default' ? `/cache/${module}@${version}` : `/${module}@${version}`
const cache = prefixStorage(useStorage(), `${baseCacheKey}/`)
const key = options.key
Expand Down

0 comments on commit fb1f154

Please sign in to comment.