Marketpress permalinks not updating

Changing the product list page causes all products in the list to still be linked to the previous page and therefore giving me a 404 error.

I'm trying to figure out a way to automatically flush rewrite rules and I'm hooking into the save_post_page action. This does the job if you update the page twice. But, Im having a hard time trying to figure out how to flush rewrite rules the first time the button is clicked to update the page.

This is my attempt to solve the problem:

function my_flush_rules($post_id){
if ( ! wp_is_post_revision( $post_id ) ){

	$my_args = array(
      'ID'  => $post_id);
      flush_rewrite_rules();
		remove_action('save_post_page', 'my_flush_rules');

		wp_update_post( $my_args);
		add_action('save_post_page', 'my_flush_rules');
	}
}

add_action ( 'save_post_page', 'my_flush_rules' );

But it still doesn't flush the rewrite rules until the second time updating the page. The closest solution and explanation I found to why it takes two updates to flush rewrite rules is here, but I'm not sure how their specific issues relates to mine exactly.