question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Caching doesn't seem to be working

See original GitHub issue

Hey!

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:open
  • Created 3 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stafyniaksachacommented, Feb 26, 2021

@mehdilouraoui @Xerios @Jbmanllr you can test the beta branch with strapi-middleware-cache@beta package tag !

1reaction
Xerioscommented, Feb 16, 2021

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 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found