7 declare(strict_types=1);
66 if ($this->dataProvider ===
null) {
70 if ($this->dataProvider->getCacheKey() && $this->dataProvider->getCacheLifetime()) {
71 $cache = $this->cache->load($this->dataProvider->getCacheKey());
75 return $this->serializer->unserialize(
$cache);
78 $data = $this->dataProvider->getRssData();
80 if ($this->dataProvider->getCacheKey() && $this->dataProvider->getCacheLifetime()) {
82 $this->serializer->serialize(
$data),
83 $this->dataProvider->getCacheKey(),
85 $this->dataProvider->getCacheLifetime()
110 return $feed->getFormattedContent();