Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLC BuddyPress integration #12

Open
john-hix opened this issue Jan 12, 2021 · 3 comments
Open

OLC BuddyPress integration #12

john-hix opened this issue Jan 12, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@john-hix
Copy link
Collaborator

john-hix commented Jan 12, 2021

Eric suggested pulling the data found on the activity page. That data is available at /wp-json/buddypress/v1/activity. (OLC)

Traffic for OLC is rather low. Using the raw activity feed would be sufficient for a while. Later, the need could arise for fetching only "hot" or popular threads.

@john-hix
Copy link
Collaborator Author

@Ebcosio , I think the OLC activity data feed lends itself to caching better than the events data, which needed to be kept up-to-date (or at least kept only in page cache).

As such, I think we could cache the activity feed in a transient. That could be very fast if CLT decided to use in-memory caches for their WP sites. Even if they don't, it would still be faster than calling OLC every time.

I think we could make the cached OLC data expire every 6 hours or so. Overall, what do you think about caching the OLC data?

@Ebcosio
Copy link
Owner

Ebcosio commented Jan 13, 2021

Yes, unlike the events data, I think OLC activity is somewhat low and won't need refreshing much. So caching would work here.

@john-hix john-hix added the enhancement New feature or request label Jan 20, 2021
@john-hix
Copy link
Collaborator Author

  • Add thread-level cache for activity endpoint
  • build transient cache
  • Add option to filter out certain types of activity e.g. "avatar_change"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants