Caching doesn't seem to be working #25
Comments
That does seem off, although I don't have enough here to debug. Is the repo public by any chance ? |
Same issue here, it's not caching anything, i also don't have the |
Hi @Jbmanllr Could you please share the following:
|
Sure! Thanks for your help:
Strapi version: 3.4.1 Middleware version: "strapi-middleware-cache": "^1.2.0", |
I've encountered the same issue, after debugging for a while I found out the reason: strapi-middleware-cache/lib/index.js Line 202 in b32979a
So the issue in my case is that the library assumes I'm using IDs, but I'm actually using slugs instead of IDs which kind of breaks the system. |
Gonna go with another cache, this one is not maintained. |
To use Slugs this would be a custom route that the middleware layer isn't aware of, for something like this you would need to customize the middleware. |
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 馃槃 |
Hello @mehdilouraoui your issue should have been resolved as of 1.5.0 release ! For custom routes (with slugs), can you add a sample of what you need in comment on the #43 PR ? |
@mehdilouraoui @Xerios @Jbmanllr you can test the beta branch with |
Any news about this? have same issue |
Hey!
Firstly, many thanks for this very useful package! 馃憤
I've added the following code in at
config/middleware.js
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:
Missing this log :
debug [Cache] Caching route /grids/* [maxAge=3600000]
Any idea?
Many thanks :)
The text was updated successfully, but these errors were encountered: