[buddypress-trac] [BuddyPress Trac] #6370: Blogs: Improvements to bp_blogs_record_existing_blogs()
buddypress-trac
noreply at wordpress.org
Mon Apr 13 05:52:38 UTC 2015
#6370: Blogs: Improvements to bp_blogs_record_existing_blogs()
-------------------------------+-----------------------
Reporter: r-a-y | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.3
Component: Component - Blogs | Version: 2.1
Severity: normal | Keywords: has-patch
-------------------------------+-----------------------
`bp_blogs_record_existing_blogs()` doesn't really do a good job with
recording existing blogs especially when the `"Repopulate blogs records"`
option is used from the `"Tools > BuddyPress"` admin page.
Attached patch improves the function by:
* Saving the offset just in case the function hangs so the function can be
resumed from that offset on the next run.
* Supports passing selected blog IDs in case a dev wants to re-record
specific blogs
* Fixing blog count caches by using `bp_blogs_clear_blog_object_cache()`
* Giving each blog a better last activity timestamp by using the
`last_updated` column from the `wp_blogs` column
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6370>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list