Skip to content

Commit

Permalink
chore: remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
dylankelly authored and jeffdowdle committed Jan 31, 2024
1 parent 4cdced8 commit c9ddf6f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/nuxt-ripple/composables/use-tide-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ export const useTidePage = async (
)

if (Object.keys(nuxt.payload.data).length > maxCacheItems + 1) {
if (process.dev) {
console.log('clear nuxt cache')
}
debugLogger(`Cache is larger than max ${maxCacheItems} items, clearing...`)
clearNuxtData()
}
}
Expand All @@ -92,9 +90,6 @@ export const useTidePage = async (
// Refresh data so it doesnt go stale whilst client side nav
if (pageData.value && pageData.value._fetched) {
if (isCacheTimeExpired(pageData.value._fetched)) {
if (process.dev) {
console.log('Cache reset for page', `page-${path}`)
}

debugLogger(
'Cached data for this page is stale, clearing nuxt cache just for this page...',
Expand Down

0 comments on commit c9ddf6f

Please sign in to comment.