Only homepage caching
ozergul opened this issue · 5 comments
ozergul commented
Hello
I want to cache only my home page that is "/"
How can I do this?
pages: [
// you can also pass a regular expression to test a path
'/'
],
The code above is caching all pages.
sonofmagic commented
// to cache only root route, use a regular expression
/^/$/
The author shows it in README.md
ozergul commented
How can I see that the cache is working? Are there any logging?
sonofmagic commented
I use it in my product , it actually works. but i don't know how to get this cache instance
maybe we should inject this page-cache into context
like context.$pageCache
then we can do 'get' ,'set','del',and log it
dongwuqiang commented
Hello
I want to cache only my home page that is "/"How can I do this?
pages: [ // you can also pass a regular expression to test a path '/' ],The code above is caching all pages.
what type of store you use? redis?
ozergul commented
no, memory