Allow to set a cache duration

Issue #39 new
Dan created an issue

Situation

The package allows developers to cache certain endpoints, for example via annotations.

Cached items have no specific cache duration. To invalidate the cache editors need to clear the cache:

The cache will only be cleared if the "clear cache" button is klicked in the backend.

However, a typical use cace for API endpoints is to cache requests for a short period of time only. For example 1 hour or even only 1 minute for items with a high change frequency.

Feature Request

Allow to set a cache duration time via annotation as well.

Comments (3)

  1. Log in to comment