Skip to content

Commit 176ce43

Browse files
add comment
1 parent b2a8ff4 commit 176ce43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Rss/Model/Rss.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
namespace Magento\Rss\Model;
1010

1111
use Magento\Framework\App\CacheInterface;
12+
use Magento\Framework\App\FeedFactoryInterface;
1213
use Magento\Framework\App\ObjectManager;
1314
use Magento\Framework\App\Rss\DataProviderInterface;
1415
use Magento\Framework\Exception\InputException;
1516
use Magento\Framework\Exception\RuntimeException;
1617
use Magento\Framework\Serialize\SerializerInterface;
17-
use Magento\Framework\App\FeedFactoryInterface;
1818

1919
/**
2020
* Provides functionality to work with RSS feeds
@@ -79,6 +79,7 @@ public function getFeeds()
7979
return $this->serializer->unserialize($cache);
8080
}
8181

82+
// serializing data to make sure all Phrase objects converted to a string
8283
$serializedData = $this->serializer->serialize($this->dataProvider->getRssData());
8384

8485
if ($cacheKey && $cacheLifeTime) {

0 commit comments

Comments
 (0)