Verified Commit 9b92d407 authored by Erick Hitter's avatar Erick Hitter
Browse files

Ensure that updated posts have their caches fixed

This mainly impacts the process for marking events completed
parent 519c7326
......@@ -300,6 +300,7 @@ class Cron_Options_CPT extends Singleton {
// Create the post, or update an existing entry to run again in the future
if ( is_int( $update_id ) && $update_id > 0 ) {
$inserted = $wpdb->update( $wpdb->posts, $job_post, array( 'ID' => $update_id, ) );
$this->posts_to_clean[] = $update_id;
} else {
$inserted = $wpdb->insert( $wpdb->posts, $job_post );
}
......
Supports Markdown
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