Commit 95b0326a authored by KR Moorhouse's avatar KR Moorhouse Committed by Kevin Stover

Issue#3745

parent ed3fd038
......@@ -22,10 +22,10 @@ return apply_filters( 'ninja_forms_required_updates', array(
'requires' => array( 'CacheCollateFields' ),
'nicename' => __( 'Update Objects Tables', 'ninja-forms' ),
),
// 'OrphanSubs' => array(
// 'class_name' => 'NF_Updates_OrphanSubs',
// 'requires' => array( 'CacheCollateFields' ),
// 'nicename' => __( 'Cleanup Orphan Records', 'ninja-forms' ),
// ),
'CacheCollateCleanup' => array(
'class_name' => 'NF_Updates_CacheCollateCleanup',
'requires' => array( 'CacheCollateObjects' ),
'nicename' => __( 'Cleanup Orphan Records', 'ninja-forms' ),
),
));
This diff is collapsed.
......@@ -161,6 +161,8 @@ class NF_Updates_CacheCollateObjects extends NF_Abstracts_RequiredUpdate
$this->cleanup();
// Prepare to output the number of updates remaining.
$this->response[ 'updatesRemaining' ] = count( $this->running );
// Record our current location in the process.
update_option( 'ninja_forms_doing_required_updates', $this->running );
$this->respond();
}
// Get the number of rows in the object_meta table.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment