[buddypress-trac] [BuddyPress] #4792: bp_activity_akismet_delete_old_metadata is NOT firing in WP-cron, leading to massive potential DB bloat.
buddypress-trac
noreply at wordpress.org
Fri Feb 22 20:16:29 UTC 2013
#4792: bp_activity_akismet_delete_old_metadata is NOT firing in WP-cron, leading
to massive potential DB bloat.
-------------------------------------+------------------
Reporter: rossagrant | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 1.7
Component: Activity | Version: 1.6
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------
Changes (by boonebgorges):
* keywords: => has-patch needs-testing
* milestone: Awaiting Review => 1.7
Comment:
Maybe I'm missing something, but it looks like it's just that the hook is
missing. The event is being set correctly as
`bp_activity_akismet_delete_old_metadata`, and there's a function by the
same name. But registering an event with wp-cron does not mean registering
a *callback*, it means registering a *hook*. So what we need is probably
as simple as
{{{
add_action( 'bp_activity_akismet_delete_old_metadata',
'bp_activity_akismet_delete_old_metadata' );
}}}
rossagrant, would you mind dropping that into a file somewhere (bp-
activity/bp-activity-akismet.php would be fine) and seeing if it does the
trick?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4792#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list