Typo in caching code sample
Oleg-Arkhipov opened this issue · 0 comments
Oleg-Arkhipov commented
https://ssr.vuejs.org/guide/caching.html#page-level-caching
const LRU = require('lru-cache')
const renderer = createRenderer({
cache: LRU({
max: 10000,
maxAge: ...
})
})
According to the LRU docs, its export is a constructor, so the code should be:
const LRU = require('lru-cache')
const renderer = createRenderer({
cache: new LRU({
max: 10000,
maxAge: ...
})
})
Also if I still try the first variant, my SSR server just doesn't respond to requests.