1.0.8 • Published 1 year ago

strapi-api-caching v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Strapi plugin strapi-api-caching

A plugin that caches API responses into a JSON file and serves the file when the request url matches.

Table of Contents

Requirements

  • Strapi v4.4.0+
  • Node 18
  • NPM >= 6.0.0

Features

  • Caches API response (of public GET requests) into JSON file with hashed request URI as filename.
  • Settings section where you can customize the cache folder, select which endpoints to cache.
  • Choice between caching only root endpoints or also cache endpoints with query parameters (e.g. populate, filter, etc.).
  • Automatically clears caches when an entry is updated.
  • Automatically clears caches of entries that have a relation with an updated entry.

Installation

Add the plugin to your project:

yarn add strapi-api-caching

Enable the middleware in your config:

[
    ...
    "plugin::strapi-api-caching.caching"
    ...
]
1.0.8

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago