I have this controller method that needs to call many other methods (sometimes in other controllers) with $response = $this->forward() to generate a bigger response.
How would you go about caching all those responses?
For example, should each method handle its own cache? That would be good if the method is also required in other methods, or even as standalone.
Either way, how do I do this? I guess http cache won’t work in this case.
Your can use SonataCacheBundle as Cache provider, and replace forward method:
Default example: