strapi-community / strapi-plugin-rest-cache

Speed-up HTTP requests with LRU cache.
https://strapi-community.github.io/strapi-plugin-rest-cache/
MIT License
129 stars 29 forks source link

This plugin is not working #6

Closed ronildo closed 2 years ago

ronildo commented 2 years ago

Unless I'm doing something wrong I don't see this plugin working... I followed the steps under the getting started page, and nothing happened.

I also tried using in memory and also redis.

dimslab-fr commented 2 years ago

Hi,

I've the same issue with Strapi 4.1.0.

Here my setup : "rest-cache": { config: { provider: { name: "memory", options: { max: 32767, maxAge: 3600, }, }, strategy: { contentTypes: [ "api::brand.brand", "api::category.category", "api::crypto-currency.crypto-currency", "api::currency.currency", "api::page.page", "api::product.product", "api::shipping-country.shipping-country", "api::shipping-price.shipping-price", "api::shipping-type.shipping-type", "api::shipping-zone.shipping-zone", "api::vat-rate.vat-rate", "api::vendor.vendor", "api::vat.vat", "api::wallet.wallet", ], }, }, },

ronildo commented 2 years ago

@stafyniaksacha I believe the issue is with the packaging.

Here is a print of GitHub repo for the package:

Screen Shot 2022-02-25 at 5 27 43 PM

And here is the print of my node_modules

Screen Shot 2022-02-25 at 5 27 55 PM
stafyniaksacha commented 2 years ago

Hello @ronildo @DimitriDerthe , that is fixed in the v4.0.4 : the strapi-server.js was missing