10 months ago

Caching responses on specific URLs

Posted 10 months ago by pilat

Hi, is there a way to cache JSON responses on selected routes/URLs?

Say, /api/account/some-id — return it from cache unless it is 5+ minutes old.

Preferably, if the cached resource can be returned without even hitting PHP.

Even more preferably, if I could setup this via .htaccess =)))

Please sign in or create an account to participate in this conversation.