grunion_optimize_table, false
grunion_optimize_table, false
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('grunion_optimize_table, false') is found 2 times:
- /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-util.php line 363
* @since 6.4.0 Set to false by default. * * @param bool $filter Should Jetpack optimize the table, defaults to false. */ apply_filters( 'grunion_optimize_table', false ) ) { $wpdb->query( "OPTIMIZE TABLE $wpdb->posts" ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching } // if we hit the max then schedule another run if ( count( $post_ids ) >= $grunion_delete_limit ) { - /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-util.php line 416
* @since 6.5.0 * * @param bool $filter Should Jetpack optimize the table, defaults to false. */ apply_filters( 'grunion_optimize_table', false ) ) { // OPTIMIZE TABLE is a MySQL-specific maintenance command that cannot be prepared and is only run when explicitly enabled via filter $wpdb->query( "OPTIMIZE TABLE $wpdb->posts" ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching } // if we hit the max then schedule another run