https://github.com/agentejo/simpleresponsecache
Simple api response cache addon for Cockpit CMS
https://github.com/agentejo/simpleresponsecache
Last synced: 5 months ago
JSON representation
Simple api response cache addon for Cockpit CMS
- Host: GitHub
- URL: https://github.com/agentejo/simpleresponsecache
- Owner: agentejo
- Created: 2018-06-12T20:29:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-21T20:10:53.000Z (almost 4 years ago)
- Last Synced: 2025-05-07T04:59:21.171Z (5 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 11
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Add files to `addons/SimpleResponseCache`.
# Configuration
Define cache duration (default is 60 sec) in `config/config.yaml`:
```
responseCache:
duration: 60
```# Usage
append `rspc=1` to your api calls you want to be cached:
```
/api/collection/get/{name}?token=*apitoken*&rspc=1
```### 💐 SPONSORED BY
[](https://www.ginetta.net)
We create websites and apps that click with users.