Replies: 6
Ref: https://wordpress.org/support/topic/sticky-posts-issues-when-redis-cache-is-full/#post-16851128
This code:
wp_update_post( array( 'ID' => $post->ID, 'menu_order' => $start), false, false );
is rather slow when updating dozens of posts.
@tillkruess is it safe to use this code instead:
$wpdb->update($wpdb->posts, array( 'menu_order' => $start ), array( 'ID' => $post->ID) );
clean_post_cache($post->ID);