How do we set up a controller so the rendered output is cached?
Blocks are cached for logged in users by default, and the build function doesn't even run once the block is cached for logged in users.
I have some custom controllers for landing pages where I would like to cache the output for logged-in users.
I guess I could put everything within those controllers in a block or in several blocks, but is there a relatively simple way to make a controller behave like a block and not even run the build function once it is rendered for a logged in user?