Comments (8)
Awesome, its working. Thanks a ton @arash16
from nuxt-ssr-cache.
@1hakr sure, tomorrow I'll add it.
from nuxt-ssr-cache.
@arash16 thanks a lot! Eagerly waiting for it.
from nuxt-ssr-cache.
@1hakr just published it, let me know if everything works as expected.
from nuxt-ssr-cache.
I tried i but i'm getting this error
ERROR Cannot read property 'isCacheableValue' of undefined 17:58:01
at MemcachedClient.isCacheableValue (node_modules/cache-manager-memcached-store/index.js:143:20)
at node_modules/cache-manager/lib/multi_caching.js:228:22
at node_modules/async/lib/async.js:181:20
at Object.async.forEachOf.async.eachOf (node_modules/async/lib/async.js:233:13)
at Object.async.forEach.async.each (node_modules/async/lib/async.js:209:22)
at Object.setInMultipleCaches (node_modules/cache-manager/lib/multi_caching.js:220:15)
at node_modules/nuxt-ssr-cache/lib/middleware.js:69:17
at process._tickCallback (internal/process/next_tick.js:68:7)
Also i see you have not added any test cases.
from nuxt-ssr-cache.
@1hakr sorry I didn't have time to write tests.
However I did test it with a live beta version of our site and it was working fine.
Can you provide some code, so that I can reproduce that error?
from nuxt-ssr-cache.
cache: {
useHostPrefix: true,
store: {
type: 'multi',
stores: [
{
type: 'memory',
max: 2000,
ttl: 3600
},
{
type: 'memcached',
options: {
hosts: ['127.0.0.1:11211']
}
}
]
},
pages: ['/']
}
The error was happening only when using multiple stores
from nuxt-ssr-cache.
@1hakr it's a bug with underlying library that I have used.
I have fixed it for now and opened a pull request with that library to be fixed.
from nuxt-ssr-cache.
Related Issues (20)
- TypeError: Cannot read property 'renderRoute' of undefined HOT 3
- Cache is not working HOT 3
- Config Enable/Disable HOT 1
- caching not working HOT 16
- version should be 1.5.2
- Missing documentation HOT 2
- How to determine dynamic version HOT 3
- [question] Are there plans to add Cache Headers usage HOT 2
- Feature Request - A hook to clear cache based on a key HOT 4
- TypeError: Cannot read property 'hostname' of undefined
- Issue with using nuxt-ssr-cache with Nuxt.JS universal-storage-module
- Why created, serverprefetch still getting called ?
- Can this skip caching the header HOT 1
- [Feature request] Set config using ModuleOptions (good to have)
- Handling dynamic routes and clearing cache programmatically HOT 1
- Security advisories: Regular Expression Denial of Service HOT 1
- Feature Request: Add support of mongodb store HOT 1
- ERROR Cannot redefine property: styles HOT 1
- Different users see different pages HOT 1
- Pages section is still required if key function is provided
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-ssr-cache.