A cache middleware for Strapi v3 headless CMS that caches incoming GET requests and auto-busts on write operations. Current stable version is 2.1.8 (deprecated). Last updated 2021, no longer maintained. Requires Strapi 3.4.0+ and Node 14. Supports memory and Redis storage engines with per-model caching configuration. Deprecated in favor of strapi-plugin-rest-cache for Strapi v4. Key differentiator: simple LRU caching with automatic cache invalidation on PUT/PATCH/POST/DELETE.
npm install strapi-middleware-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Enable cache for 'review' model with Redis storage backend.
Use https://github.com/strapi-community/strapi-plugin-rest-cache
Re-read documentation and update config for v2 format.
Use e.g., 'article' not 'Article'.
Use hosts: [{ host: '...', port: 6379 }]Ensure config/middleware.js exports function with settings.cache.
Use lowercase model UID in models array, e.g., 'article'.
Use hosts: [{ host: '127.0.0.1', port: 6379 }]No dependency data recorded yet.