@nuxtjs/component-cache
Component Cache
vue-server-renderer has built-in support for component-level caching. This module automatically adds a LRU cache to project.
Setup
- Add
@nuxtjs/component-cachedependency using yarn or npm to your project - Add
@nuxtjs/component-cachetomodulessection ofnuxt.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)
Related Packages
@nuxtjs/sitemap
Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.
10,334,110
441
Version History
| Version | Released | License |
|---|---|---|
| 1.1.6 | MIT | |
| 1.1.5 | MIT | |
| 1.1.4 | MIT | |
| 1.1.3 | MIT | |
| 1.1.2 | MIT | |
| 1.1.1 | MIT | |
| 1.1.0 | MIT | |
| 1.0.0 | MIT | |
| 0.1.5 | MIT | |
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.2 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT |