feeds
feeds copied to clipboard
[UPSTREAM] SimplePie Cache constantly updating
Hi. I noticed the cache system wasn't working for this package. Looking at the code I found it is using the SimplePie cache system. As mentioned in this issue https://github.com/simplepie/simplepie/issues/830 it's a problem with SimplePie v1.8. Maybe in the next release of SimplePie it is already solved.
As a workaround, I'm using the Feed::make() with the Laravel cache system and the config/feed.php with 'cache.disabled' => true.
Here is a little snippet of how I'm using the Laravel cache, if you are interested:
$feed = Cache::get('rss_feed');
if (!$feed) {
$feed = FeedsFacade::make(['src1', 'src2', ...], 2);
Cache::put('rss_feed', $feed, 3600);
}