Move the `outputFromCache` logic to the Symfony controller