This question already has an answer here:
- How to cache in Symfony 2? 5 answers
I use Symfony2 to build a website that will request data from a web service. Requests are made from the server (not the client). I would like to use a cache mechanism to store the responses received from the web service, so that I do not issue the same request again and again.
Is there an API in Symfony core to manage files in cache ? I would like to use the /app/cache directory but cannot find the best way to do this. I could write files directly into this directory, but then I will not benefit from the automatic environment management.
</div>