Skip to content
main
Switch branches/tags
Code

Latest commit

 - @nuxtjs/browserconfig@0.0.13
 - @nuxtjs/bulma@1.3.0
 - @nuxtjs/component-cache@1.1.6
 - @nuxtjs/markdownit@1.2.10
 - @nuxtjs/ngrok@1.2.9
 - @nuxtjs/toast@3.3.1
 - @nuxtjs/yandex-metrika@1.1.0
dfe5722

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Component Cache

npm npm (scoped with tag)

vue-server-renderer has built-in support for component-level caching. This module automatically adds a LRU cache to project.

Setup

  • Add @nuxtjs/component-cache dependency using yarn or npm to your project
  • Add @nuxtjs/component-cache to modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    '@nuxtjs/component-cache',
    
    // With options
    ['@nuxtjs/component-cache', { maxAge: 1000 * 60 * 60 }],
  ]
}

Options

See component-level caching for mor information.

max

  • default: 10000

maxAge

  • default: 1000 * 60 * 15 (15 minutes)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published