strapi-cache 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -32,3 +32,21 @@ or
32
32
  ```bash
33
33
  yarn add strapi-cache
34
34
  ```
35
+
36
+ ## ⚙️ Configuration
37
+
38
+ In your Strapi project, navigate to `config/plugins.js` and add the following configuration:
39
+
40
+ ```javascript
41
+ // config/plugins.{js,ts}
42
+ 'strapi-cache': {
43
+ enabled: true,
44
+ config: {
45
+ debug: false, // Enable debug logs
46
+ max: 1000, // Maximum number of items in the cache
47
+ ttl: 1000 * 60 * 60, // Time to live for cache items (1 hour)
48
+ size: 1024 * 1024 * 1024, // Maximum size of the cache (1 GB)
49
+ allowStale: false, // Allow stale cache items
50
+ },
51
+ },
52
+ ```
@@ -16888,3 +16888,4 @@ const SettingsPage = () => {
16888
16888
  ] });
16889
16889
  };
16890
16890
  exports.default = SettingsPage;
16891
+ //# sourceMappingURL=SettingsPage-DfFV5a--.js.map