Skip to content

[UPSTREAM] SimplePie Cache constantly updating #94

@DouglasAR01

Description

@DouglasAR01

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 simplepie/simplepie#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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions