slaFFik / bp-feeds

BuddyPress Feeds - Allow your members to import (RSS) feeds of their external blogs into Activity Directory
GNU General Public License v3.0
7 stars 2 forks source link

Improve updating feeds logic #18

Open slaFFik opened 9 years ago

slaFFik commented 9 years ago

Options: 1) WP-Cron 2) ajax 3) hidden iframe

slaFFik commented 8 years ago

Currently, feeds are retrieved only when someone visits the page in user profile. This action also can be very slow, and currently is blocking page load.

So, here is the first step for en improvement: 1) ajaxify this retrieving - this fill fix blocking issue 2) ideally, create a service (our own), that will ping all connected sites to make them a request to update RSS feeds, this can be allowed on per group/user basis, so that group/user can even pay to always have updated Feeds tab in profile.

BoweFrankema commented 8 years ago

Great idea!

1: Agreed! Also I think there should be an initial import (trigger) as soon as a feed is saved for the first time. 2: We could probably set up an Amazon instance that does this for our paying customers. WPRocket also does this with their cron service. http://docs.wp-rocket.me/article/8-how-the-cache-is-preloaded. I'm not sure how they do it, but I think they store a log file on your server that their script uses to visit files.

this can be allowed on per group/user basis, so that group/user can even pay to always have updated Feeds tab in profile.

I like this idea but I'd also argue that this is too much of a technical issue for many.. It would also make sense to keep these setting global or configurable for the admin only and configurable via a post meta box for the CPT item.