feeds icon indicating copy to clipboard operation
feeds copied to clipboard

[UPSTREAM] SimplePie Cache constantly updating

Open DouglasAR01 opened this issue 1 year ago • 0 comments

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);
}

DouglasAR01 avatar Sep 20 '24 21:09 DouglasAR01