How to cache API output (text and json)

Hi,
I have specific API outputs that are in text or json that i want cached on CF servers.

For example, if someone searched with keyword "eggs " on products, the URL is:

/api.php?get=products&q=eggs

Api would output JSON objects of all products matching “eggs”

I would like CF to cache the results so that my site need not query the DB and build the JSON everytime someone searches for the word “eggs”

Is this possible? (FREE account only too)

Maybe below posts could help?:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.