Caching doesn't seem to be working
See original GitHub issueHey!
Firstly, many thanks for this very useful package! 👍
I’ve added the following code in at config/middleware.js
module.exports = ({ env }) => ({
settings: {
cache: {
enabled: true,
models: ['grid'],
}
}
})
I can see the mounting and the using storage engine logs but I have no log from the caching routes.
I also tried with grids
, nothing happens.
Here are the logs:
$ strapi develop
[2020-11-23T20:27:40.633Z] debug [Cache] Mounting LRU cache middleware
[2020-11-23T20:27:40.634Z] debug [Cache] Storage engine: mem
Missing this log :
debug [Cache] Caching route /grids/* [maxAge=3600000]
Any idea?
Many thanks 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Caching does not seem to work - WordPress.org
Caching does not seem to work. Resolved fjordkommission ... It seems that ASA1 is not fetching them from the cache but still tries...
Read more >Chrome WON'T clear cache... ctrl + F5 doesn't seem to work ...
Open developer console -> right click on the refresh icon, and then click "Empty Cache and Hard Reload". This is new for me...
Read more >cache - Memcached - doesn't seem to be working - Server Fault
Memcache won't improve performance unless you had severe I/OWait issues to begin with. You'll see an improvement with artificial performance tests like ...
Read more >Troubleshooting Guide | LSCache for WordPress
This is a generic error that doesn't indicate any cause. Navigate to LiteSpeed Cache > Toolbox > Report and look at the Report...
Read more >EDS Cache Hint TTL doesn't seem to be working
It looks like the ttl set on the cache hint for resultset caching is not working as expected. If you have a look...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mehdilouraoui @Xerios @Jbmanllr you can test the beta branch with
strapi-middleware-cache@beta
package tag !I’m aware, just pointing out to whoever might encounter any issues when using custom routes.
I was expecting this library to be less complicated. In my usecase I rarely update the content, so simply caching everything and busting everything when I do any sort of change would’ve been more than enough 😄