/** * Cache the post's HTTP response. * * @param PostInterface $post */ public function cache(PostInterface $post) { $response = $post->getResponse(); $response->setTtl($this->settings->get('anomaly.module.posts::ttl')); }