I'm replacing some templates with the ElementAPI plugin.
In my templates, I would use the
cache tag, and rely on Craft to handle invalidation when the elements changed.
How can I achieve a similar thing now that I'm using the ElementAPI plugin?
The ElementAPI plugin itself doesn't seem to offer a caching solution, but there is a fork from a guy which has implemented a caching option
I was also very interested in this, so i forked the repo from theoplampert and added some extra features. You can find it here, https://github.com/jacobnijgh/ElementAPI. This fork allows you to not only cache the results but also the paginated results just what we needed in our case for loading some results with AJAX.