_bbp_akismet_optimize_tables
_bbp_akismet_optimize_tables
Appears in: bbpress.2.6.11, bbpress.2.6.9
Hook Type: filter
Displaying hooks found in version: bbpress.2.6.9apply_filters('_bbp_akismet_optimize_tables') is found 1 times:
- /includes/extend/akismet.php line 1093
* Determines whether tables should be optimized. * * @param int Random number between 1 and 5000. */ $optimize = (int) apply_filters( '_bbp_akismet_optimize_tables', mt_rand( 1, 5000 ), array( $wpdb->posts, $wpdb->postmeta ) ); // Lucky number 11 if ( 11 === $optimize ) { $wpdb->query( "OPTIMIZE TABLE {$wpdb->posts}" ); $wpdb->query( "OPTIMIZE TABLE {$wpdb->postmeta}" ); }