agentejo / SimpleResponseCache

Simple api response cache addon for Cockpit CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ginetta
We create websites and apps that click with users.

About

Simple api response cache addon for Cockpit CMS


Languages

Language:PHP 100.0%